Skip to content

Commit

Permalink
ext4: Fix memory leak in ext4_fill_super() in case of a failed mount
Browse files Browse the repository at this point in the history
Signed-off-by: Manish Katiyar <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
  • Loading branch information
mkatiyar authored and tytso committed May 18, 2009
1 parent 0568c51 commit f683016
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2924,6 +2924,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
brelse(bh);
out_fail:
sb->s_fs_info = NULL;
kfree(sbi->s_blockgroup_lock);
kfree(sbi);
lock_kernel();
return ret;
Expand Down

0 comments on commit f683016

Please sign in to comment.