aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index be46f26c9a56..fbb4cf79a20e 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1050,7 +1050,7 @@ static int nfs_open_revalidate(struct dentry *dentry, struct nameidata *nd)
1050 struct inode *dir; 1050 struct inode *dir;
1051 int openflags, ret = 0; 1051 int openflags, ret = 0;
1052 1052
1053 if (!is_atomic_open(nd)) 1053 if (!is_atomic_open(nd) || d_mountpoint(dentry))
1054 goto no_open; 1054 goto no_open;
1055 parent = dget_parent(dentry); 1055 parent = dget_parent(dentry);
1056 dir = parent->d_inode; 1056 dir = parent->d_inode;