sysfs: Remove double free sysfs_get_sb
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 30 Mar 2010 23:50:26 +0000 (16:50 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:37:31 +0000 (09:37 -0700)
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/mount.c

index db0b1f2138af94e58dd6e8796863c08d1955b52d..50e4fb6a7403d27dd5c19a34a35c3d12373c704b 100644 (file)
@@ -104,7 +104,6 @@ static int sysfs_get_sb(struct file_system_type *fs_type,
        if (IS_ERR(sb) || sb->s_fs_info != info)
                kfree(info);
        if (IS_ERR(sb)) {
-               kfree(info);
                error = PTR_ERR(sb);
                goto out;
        }