summaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-29 16:29:04 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-09-29 22:02:24 -0400
commit13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd (patch)
treeb8dbed6526d4e47418173051fb595fb60268b4d4 /fs/afs
parent7b9a2378b480f426d2c575633fa08c20e341bb7b (diff)
downloadop-kernel-dev-13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd.zip
op-kernel-dev-13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd.tar.gz
afs: dget_parent() can't return a negative dentry
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/dir.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index 646337d..5293003 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -600,9 +600,6 @@ static int afs_d_revalidate(struct dentry *dentry, unsigned int flags)
/* lock down the parent dentry so we can peer at it */
parent = dget_parent(dentry);
- if (!parent->d_inode)
- goto out_bad;
-
dir = AFS_FS_I(parent->d_inode);
/* validate the parent directory */
OpenPOWER on IntegriCloud