Skip to content

Commit

Permalink
sysfs: Remove double free sysfs_get_sb
Browse files Browse the repository at this point in the history
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Eric W. Biederman authored and Greg Kroah-Hartman committed May 21, 2010
1 parent 9e7fdd2 commit ba514a5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/sysfs/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ba514a5

Please sign in to comment.