Skip to content

Commit

Permalink
afs: dget_parent() can't return a negative dentry
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Sep 30, 2013
1 parent 7b9a237 commit 13f3583
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/afs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 13f3583

Please sign in to comment.