From: Al Viro Date: Wed, 3 Sep 2014 17:11:09 +0000 (-0400) Subject: [fix] lustre: d_make_root() does iput() on dentry allocation failure X-Git-Tag: v3.17-rc5~1^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f77ced6637a18d4f543458a112881776a6b7fa8c;p=karo-tx-linux.git [fix] lustre: d_make_root() does iput() on dentry allocation failure double-free is a bad thing Signed-off-by: Al Viro --- diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c index 0367f5a2cfe4..0c59e26c0805 100644 --- a/drivers/staging/lustre/lustre/llite/llite_lib.c +++ b/drivers/staging/lustre/lustre/llite/llite_lib.c @@ -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;