diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-29 22:29:04 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-30 04:02:24 +0200 |
commit | 13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd (patch) | |
tree | b8dbed6526d4e47418173051fb595fb60268b4d4 /fs/afs/dir.c | |
parent | ocfs2: needs ->d_lock to poke in ->d_parent->d_inode from ->d_revalidate() (diff) | |
download | linux-13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd.tar.xz linux-13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd.zip |
afs: dget_parent() can't return a negative dentry
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r-- | fs/afs/dir.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 646337dc5201..529300327f45 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 */ |