[fix] lustre: d_make_root() does iput() on dentry allocation failure
double-free is a bad thing Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7ec62d421b
commit
f77ced6637
@ -568,7 +568,7 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt,
|
|||||||
if (sb->s_root == NULL) {
|
if (sb->s_root == NULL) {
|
||||||
CERROR("%s: can't make root dentry\n",
|
CERROR("%s: can't make root dentry\n",
|
||||||
ll_get_fsname(sb, NULL, 0));
|
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;
|
sbi->ll_sdev_orig = sb->s_dev;
|
||||||
|
Loading…
Reference in New Issue
Block a user