projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de5ce03
)
ext2: Fix memory leak in ext2_fill_super() in case of a failed mount
author
Manish Katiyar
<mkatiyar@gmail.com>
Mon, 18 May 2009 03:52:51 +0000
(23:52 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 18 May 2009 03:52:51 +0000
(23:52 -0400)
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext2/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext2/super.c
b/fs/ext2/super.c
index 5c4afe652245a9d045825f26f3ad3dbe0a06e13a..e3c748faf2dbcd14ceafb13c6353479e6b072eb9 100644
(file)
--- 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;
}