提交 f77ced66 编写于 作者: A Al Viro

[fix] lustre: d_make_root() does iput() on dentry allocation failure

double-free is a bad thing
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 7ec62d42
......@@ -568,7 +568,7 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt,
if (sb->s_root == NULL) {
CERROR("%s: can't make root dentry\n",
ll_get_fsname(sb, NULL, 0));
GOTO(out_root, err = -ENOMEM);
GOTO(out_lock_cn_cb, err = -ENOMEM);
}
sbi->ll_sdev_orig = sb->s_dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册