Skip to content

Commit f77ced6

Browse files
author
Al Viro
committed
[fix] lustre: d_make_root() does iput() on dentry allocation failure
double-free is a bad thing Signed-off-by: Al Viro <[email protected]>
1 parent 7ec62d4 commit f77ced6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/lustre/lustre/llite/llite_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt,
568568
if (sb->s_root == NULL) {
569569
CERROR("%s: can't make root dentry\n",
570570
ll_get_fsname(sb, NULL, 0));
571-
GOTO(out_root, err = -ENOMEM);
571+
GOTO(out_lock_cn_cb, err = -ENOMEM);
572572
}
573573

574574
sbi->ll_sdev_orig = sb->s_dev;

0 commit comments

Comments
 (0)