Skip to content

Commit

Permalink
ext3: Fix memory leak in ext3_fill_super() in case of a failed mount
Browse files Browse the repository at this point in the history
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Manish Katiyar authored and Theodore Ts'o committed May 18, 2009
1 parent f683016 commit de5ce03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext3/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2021,6 +2021,7 @@ static int ext3_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 de5ce03

Please sign in to comment.