From: Felix Blyakher Date: Tue, 26 Feb 2008 18:54:36 +0000 (-0800) Subject: nfsd: initialize lease type in nfs4_open_delegation() X-Git-Tag: v2.6.26-rc1~1083^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9167f501c6b53492eb2566dd618ce7f55f2856d5;p=pandora-kernel.git nfsd: initialize lease type in nfs4_open_delegation() While lease is correctly checked by supplying the type argument to vfs_setlease(), it's stored with fl_type uninitialized. This breaks the logic when checking the type of the lease. The fix is to initialize fl_type. The old code still happened to function correctly since F_RDLCK is zero, and we only implement read delegations currently (nor write delegations). But that's no excuse for not fixing this. Signed-off-by: Felix Blyakher Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed