forked from Minki/linux
afs: dget_parent() can't return a negative dentry
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7b9a2378b4
commit
13f3583892
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user