From: Tao Ma Date: Mon, 11 Jul 2011 22:42:42 +0000 (-0400) Subject: ext4: Fix a double free of sbi->s_group_info in ext4_mb_init_backend X-Git-Tag: v3.1-rc1~90^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caaf7a29d31da21bb8d8200d5e42d1c93d3c6e00;p=pandora-kernel.git 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 Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed