From: NeilBrown Date: Tue, 7 Feb 2012 04:35:42 +0000 (+1100) Subject: lockd: fix arg parsing for grace_period and timeout. X-Git-Tag: v3.2.14~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaadbfbf85875c76259c93e7ba51aebe2cad2138;p=pandora-kernel.git lockd: fix arg parsing for grace_period and timeout. commit de5b8e8e047534aac6bc9803f96e7257436aef9c 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 Signed-off-by: J. Bruce Fields Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed