Skip to content

Commit

Permalink
[fix] lustre: d_make_root() does iput() on dentry allocation failure
Browse files Browse the repository at this point in the history
double-free is a bad thing

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Sep 14, 2014
1 parent 7ec62d4 commit f77ced6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/lustre/lustre/llite/llite_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f77ced6

Please sign in to comment.