提交 13f35838 编写于 作者: A Al Viro

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

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册