diff options
author | Manish Katiyar <mkatiyar@gmail.com> | 2009-05-17 23:52:44 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-05-17 23:52:44 -0400 |
commit | f68301656b5f5d2de104f2687add6beeb8f3c3b9 (patch) | |
tree | b5f559c14d81031f7f0c43c229625bdc808e0163 /fs | |
parent | 0568c518937ee3a9b6a94d18bae9c150fe5d6832 (diff) |
ext4: Fix memory leak in ext4_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')
-rw-r--r-- | fs/ext4/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 600b7ad699b5..eca6c057b119 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -2924,6 +2924,7 @@ failed_mount: | |||
2924 | brelse(bh); | 2924 | brelse(bh); |
2925 | out_fail: | 2925 | out_fail: |
2926 | sb->s_fs_info = NULL; | 2926 | sb->s_fs_info = NULL; |
2927 | kfree(sbi->s_blockgroup_lock); | ||
2927 | kfree(sbi); | 2928 | kfree(sbi); |
2928 | lock_kernel(); | 2929 | lock_kernel(); |
2929 | return ret; | 2930 | return ret; |