Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 7b9a2378
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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 */