提交 b05a7851 编写于 作者: A Al Viro 提交者: Mike Marshall

orangefs: double iput() in case of d_make_root() failure

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NMike Marshall <hubcap@omnibond.com>
上级 16742f2d
......@@ -403,10 +403,8 @@ static int pvfs2_fill_sb(struct super_block *sb, void *data, int silent)
/* allocates and places root dentry in dcache */
root_dentry = d_make_root(root);
if (!root_dentry) {
iput(root);
if (!root_dentry)
return -ENOMEM;
}
sb->s_export_op = &pvfs2_export_ops;
sb->s_root = root_dentry;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册