ext3: Fix memory leak in ext3_fill_super() in case of a failed mount
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
f68301656b
commit
de5ce03730
|
@ -2021,6 +2021,7 @@ failed_mount:
|
||||||
brelse(bh);
|
brelse(bh);
|
||||||
out_fail:
|
out_fail:
|
||||||
sb->s_fs_info = NULL;
|
sb->s_fs_info = NULL;
|
||||||
|
kfree(sbi->s_blockgroup_lock);
|
||||||
kfree(sbi);
|
kfree(sbi);
|
||||||
lock_kernel();
|
lock_kernel();
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue