Files
linux/fs/lockd
NeilBrown 7b1e2d3c52 lockd: fix arg parsing for grace_period and timeout.
commit de5b8e8e04 upstream.

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.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-02 09:27:21 -07:00
..
2008-10-03 16:19:02 -04:00
2010-12-16 12:37:25 -05:00
2010-12-16 12:37:26 -05:00
2010-12-16 12:37:26 -05:00
2010-10-27 21:39:39 +02:00