]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[fix] lustre: d_make_root() does iput() on dentry allocation failure
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 3 Sep 2014 17:11:09 +0000 (13:11 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Sep 2014 02:13:39 +0000 (22:13 -0400)
double-free is a bad thing

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/lustre/lustre/llite/llite_lib.c

index 0367f5a2cfe4b0760d6dfc75e53d5257399c1ca7..0c59e26c080583f85df3bf21194e777bdab7a079 100644 (file)
@@ -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;