summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorManish Katiyar <mkatiyar@gmail.com>2009-05-17 23:52:51 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-05-17 23:52:51 -0400
commitea38fecb092cc63f115966d5a383c21373eef6d8 (patch)
treedbd30ba81f9604932a956d801059bf917caa46db /fs
parentadecf510686527e8ad89a04f0f755fe274f22cb1 (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')
-rw-r--r--fs/ext2/super.c1
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:
brelse(bh);
failed_sbi:
sb->s_fs_info = NULL;
+ kfree(sbi->s_blockgroup_lock);
kfree(sbi);
return ret;
}