Commit de5ce037 authored by Manish Katiyar's avatar Manish Katiyar Committed by Theodore Ts'o

ext3: Fix memory leak in ext3_fill_super() in case of a failed mount

Signed-off-by: default avatarManish Katiyar <mkatiyar@gmail.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent f6830165
...@@ -2021,6 +2021,7 @@ failed_mount: ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment