sysfs: Remove double free sysfs_get_sb

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Eric W. Biederman 2010-03-30 16:50:26 -07:00 committed by Greg Kroah-Hartman
parent 9e7fdd25b2
commit ba514a57f5

View 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;
}