git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48e6061
)
ext4: prevent memory leaks from ext4_mb_init_backend() on error path
author
Yu Jian
<yujian@whamcloud.com>
Mon, 1 Aug 2011 21:41:46 +0000
(17:41 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 1 Aug 2011 21:41:46 +0000
(17:41 -0400)
In ext4_mb_init(), if the s_locality_group allocation fails it will
currently cause the allocations made in ext4_mb_init_backend() to
be leaked. Moving the ext4_mb_init_backend() allocation after the
s_locality_group allocation avoids that problem.
Signed-off-by: Yu Jian <yujian@whamcloud.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c
patch
|
blob
|
history
diff --cc
fs/ext4/mballoc.c
Simple merge