mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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:
parent
9e7fdd25b2
commit
ba514a57f5
@ -104,7 +104,6 @@ static int sysfs_get_sb(struct file_system_type *fs_type,
|
|||||||
if (IS_ERR(sb) || sb->s_fs_info != info)
|
if (IS_ERR(sb) || sb->s_fs_info != info)
|
||||||
kfree(info);
|
kfree(info);
|
||||||
if (IS_ERR(sb)) {
|
if (IS_ERR(sb)) {
|
||||||
kfree(info);
|
|
||||||
error = PTR_ERR(sb);
|
error = PTR_ERR(sb);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user