sysfs: Remove double free sysfs_get_sb

Signed-off-by: Eric W. Biederman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Eric W. Biederman 2010-03-30 16:50:26 -07:00 • committed by Greg Kroah-Hartman
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;
}