From: Nick Piggin Date: Fri, 14 Jan 2011 02:48:39 +0000 (+0000) Subject: nfs: add missing rcu-walk check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=657e94b673a805b427903c5628e95348235fad06;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git nfs: add missing rcu-walk check Signed-off-by: Nick Piggin --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index d33da530097a..a0d8320bed9c 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1410,11 +1410,15 @@ no_open: static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd) { struct dentry *parent = NULL; - struct inode *inode = dentry->d_inode; + struct inode *inode; struct inode *dir; struct nfs_open_context *ctx; int openflags, ret = 0; + if (nd->flags & LOOKUP_RCU) + return -ECHILD; + + inode = dentry->d_inode; if (!is_atomic_open(nd) || d_mountpoint(dentry)) goto no_open;