]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Mar 2014 04:37:06 +0000 (21:37 -0700)
commite877d416818ff7439d01f88bf6d70131a27f730e
treefccf0e75c2259f7581b0c0de91b072c99e2fbdea
parent02a4ed4a5b0febad6f129e65ab9ae4794b51a61b
NFS: Fix a delegation callback race

commit 755a48a7a4eb05b9c8424e3017d947b2961a60e0 upstream.

The clean-up in commit 36281caa839f 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: 36281caa839f (NFSv4: Further clean-ups of delegation stateid validation)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/delegation.c