projects/linux·commit 13f35838

afs: dget_parent() can't return a negative dentry

13f35838 · Al Viro <[email protected]> · 2013-09-29 16:29:04 -04:00

Signed-off-by: Al Viro <[email protected]>
Commit
13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd
Parents
7b9a2378

Changes

1 files changed · +0 −3

FileStatusAddDelContent
fs/afs/dir.cmodified+0−3View file

fs/afs/dir.c

View file
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 */