kernel-hacking-2024-linux-s.../fs/lockd
NeilBrown de5b8e8e04 lockd: fix arg parsing for grace_period and timeout.
If you try to set grace_period or timeout via a module parameter
to lockd, and do this on a big-endian machine where

   sizeof(int) != sizeof(unsigned long)

it won't work.  This number given will be effectively shifted right
by the difference in those two sizes.

So cast kp->arg properly to get correct result.

Cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2012-02-17 18:38:51 -05:00
..
clnt4xdr.c
clntlock.c
clntproc.c
clntxdr.c
grace.c
host.c SUNRPC: Replace svc_addr_u by sockaddr_storage 2011-09-14 08:21:48 -04:00
Makefile
mon.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
svc.c lockd: fix arg parsing for grace_period and timeout. 2012-02-17 18:38:51 -05:00
svc4proc.c
svclock.c locks: rename lock-manager ops 2011-07-20 20:23:19 -04:00
svcproc.c
svcshare.c
svcsubs.c vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb 2012-01-06 23:16:53 -05:00
xdr.c
xdr4.c