]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a delegation callback race
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 3 Mar 2014 03:03:12 +0000 (22:03 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 3 Mar 2014 03:03:12 +0000 (22:03 -0500)
commit0a01b15e64925a995ab74f8408de6f3831c74276
tree357da4eb493a7cf80df34af3bcceaab442614756
parent8ef67a7559e4682e7b4385afc91eb3df0d362b1f
NFS: Fix a delegation callback race

The clean-up in commit 472ea9122426 ended up removing a NULL pointer check
that is needed in order to prevent an Oops in
nfs_async_inode_return_delegation().

Reported-by: "Yan, Zheng" <zheng.z.yan@intel.com>
Link: http://lkml.kernel.org/r/5313E9F6.2020405@intel.com
Fixes: 472ea9122426 (NFSv4: Further clean-ups of delegation stateid validation)
Cc: stable@vger.kernel.org # 3.4+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/delegation.c