diff options
author | Tao Ma | 2011-07-12 00:42:42 +0200 |
---|---|---|
committer | Theodore Ts'o | 2011-07-12 00:42:42 +0200 |
commit | caaf7a29d31da21bb8d8200d5e42d1c93d3c6e00 (patch) | |
tree | 880f1cd67f0a8c1fb1dfbb1359358d930b0f611a /fs/ext4/namei.c | |
parent | ext4: fix a race which could leak memory in ext4_groupinfo_create_slab() (diff) | |
download | kernel-qcow2-linux-caaf7a29d31da21bb8d8200d5e42d1c93d3c6e00.tar.gz kernel-qcow2-linux-caaf7a29d31da21bb8d8200d5e42d1c93d3c6e00.tar.xz kernel-qcow2-linux-caaf7a29d31da21bb8d8200d5e42d1c93d3c6e00.zip |
ext4: Fix a double free of sbi->s_group_info in ext4_mb_init_backend
If we meet with an error in ext4_mb_add_groupinfo, we kfree
sbi->s_group_info[group >> EXT4_DESC_PER_BLOCK_BITS(sb)], but fail to
reset it to NULL. So the caller ext4_mb_init_backend will try to kfree
it again and causes a double free. So fix it by resetting it to NULL.
Some typo in comments of mballoc.c are also changed.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/namei.c')
0 files changed, 0 insertions, 0 deletions