projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86db97c
)
ext4: fix typo which causes a memory leak on error path
author
Dan Carpenter
<error27@gmail.com>
Fri, 27 Mar 2009 23:42:54 +0000
(19:42 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 27 Mar 2009 23:42:54 +0000
(19:42 -0400)
This was found by smatch (http://repo.or.cz/w/smatch.git/)
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/mballoc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/mballoc.c
b/fs/ext4/mballoc.c
index 7f6fc41a2dde38bb9b3af9d819cf36e7001299db..5f3e3a3a38d67d6c0dc53760fcf0b226e7b01200 100644
(file)
--- a/
fs/ext4/mballoc.c
+++ b/
fs/ext4/mballoc.c
@@
-2699,7
+2699,7
@@
int ext4_mb_init(struct super_block *sb, int needs_recovery)
i = (sb->s_blocksize_bits + 2) * sizeof(unsigned int);
sbi->s_mb_maxs = kmalloc(i, GFP_KERNEL);
if (sbi->s_mb_maxs == NULL) {
- kfree(sbi->s_mb_
max
s);
+ kfree(sbi->s_mb_
offset
s);
return -ENOMEM;
}