提交 0ed883fd 编写于 作者: A Al Viro

openpromfs: switch to d_splice_alias()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 b113a6d3
......@@ -256,8 +256,7 @@ static struct dentry *openpromfs_lookup(struct inode *dir, struct dentry *dentry
break;
}
d_add(dentry, inode);
return NULL;
return d_splice_alias(inode, dentry);
}
static int openpromfs_readdir(struct file *file, struct dir_context *ctx)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册