summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorManish Katiyar <mkatiyar@gmail.com>2009-05-17 23:52:44 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-05-17 23:52:44 -0400
commitf68301656b5f5d2de104f2687add6beeb8f3c3b9 (patch)
treeb5f559c14d81031f7f0c43c229625bdc808e0163 /fs/ext4
parent0568c518937ee3a9b6a94d18bae9c150fe5d6832 (diff)
downloadkernel-crypto-f68301656b5f5d2de104f2687add6beeb8f3c3b9.tar.gz
kernel-crypto-f68301656b5f5d2de104f2687add6beeb8f3c3b9.tar.xz
kernel-crypto-f68301656b5f5d2de104f2687add6beeb8f3c3b9.zip
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/ext4')
-rw-r--r--fs/ext4/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 600b7ad699b..eca6c057b11 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2924,6 +2924,7 @@ failed_mount:
brelse(bh);
out_fail:
sb->s_fs_info = NULL;
+ kfree(sbi->s_blockgroup_lock);
kfree(sbi);
lock_kernel();
return ret;