diff options
author | Felix Blyakher <felixb@sgi.com> | 2008-02-26 10:54:36 -0800 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-04-23 16:13:40 -0400 |
commit | 9167f501c6b53492eb2566dd618ce7f55f2856d5 (patch) | |
tree | 41a39a802a0c6c848bfc7d9b322dbf83ab63fcdb /lib/zlib_inflate/inftrees.h | |
parent | a3fa73bd0eea74c58315114c9fc3e913f6c26d61 (diff) |
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 <felixb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'lib/zlib_inflate/inftrees.h')
0 files changed, 0 insertions, 0 deletions