diff options
author | Manish Katiyar <mkatiyar@gmail.com> | 2009-05-17 23:52:51 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-05-17 23:52:51 -0400 |
commit | 0f7ee7c17241915fdaff49d1a36f5aafd80a7dce (patch) | |
tree | 463d3882e4df4d8a8a86868a975b37218c1b3192 /fs/ext2/super.c | |
parent | de5ce037304f2c88a319b1c3b808ab0c4c618c1c (diff) |
ext2: Fix memory leak in ext2_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>
Diffstat (limited to 'fs/ext2/super.c')
-rw-r--r-- | fs/ext2/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 5c4afe652245..e3c748faf2db 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -1093,6 +1093,7 @@ failed_mount: | |||
1093 | brelse(bh); | 1093 | brelse(bh); |
1094 | failed_sbi: | 1094 | failed_sbi: |
1095 | sb->s_fs_info = NULL; | 1095 | sb->s_fs_info = NULL; |
1096 | kfree(sbi->s_blockgroup_lock); | ||
1096 | kfree(sbi); | 1097 | kfree(sbi); |
1097 | return ret; | 1098 | return ret; |
1098 | } | 1099 | } |