diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-30 00:29:04 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-30 06:02:24 +0400 |
commit | 13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd (patch) | |
tree | b8dbed6526d4e47418173051fb595fb60268b4d4 /fs | |
parent | 7b9a2378b480f426d2c575633fa08c20e341bb7b (diff) | |
download | linux-13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd.tar.xz |
afs: dget_parent() can't return a negative dentry
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-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 */ |