summaryrefslogtreecommitdiffstats
path: root/fs/lockd/svc.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2009-05-06 01:04:29 +0200
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-05-06 22:16:36 +0200
commitb2c0cea6b1cb210e962f07047df602875564069e (patch)
treef6327b45df075955d8ef9e9ad93c453ea5fc7a4c /fs/lockd/svc.c
parentnfsd41: slots are freed with session (diff)
downloadlinux-b2c0cea6b1cb210e962f07047df602875564069e.tar.xz
linux-b2c0cea6b1cb210e962f07047df602875564069e.zip
nfsd4: check for negative dentry before use in nfsv4 readdir
After 2f9092e1020246168b1309b35e085ecd7ff9ff72 "Fix i_mutex vs. readdir handling in nfsd" (and 14f7dd63 "Copy XFS readdir hack into nfsd code"), an entry may be removed between the first mutex_unlock and the second mutex_lock. In this case, lookup_one_len() will return a negative dentry. Check for this case to avoid a NULL dereference. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Reviewed-by: J. R. Okajima <hooanon05@yahoo.co.jp> Cc: stable@kernel.org
Diffstat (limited to 'fs/lockd/svc.c')
0 files changed, 0 insertions, 0 deletions