Commit 13f35838 authored by Al Viro's avatar Al Viro

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

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 7b9a2378
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment