From: Tao Ma Date: Thu, 6 Oct 2011 14:22:28 +0000 (-0400) Subject: ext4: Free resources in ext4_mb_init()'s error paths X-Git-Tag: v3.2-rc1~85^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aa0baeaba4afc4fbed7aad2812a1116e6b0adcd;p=pandora-kernel.git ext4: Free resources in ext4_mb_init()'s error paths In commit 79a77c5ac, we move ext4_mb_init_backend after the allocation of s_locality_group to avoid memory leak in error path, but there are still some other error paths in ext4_mb_init that need to do the same work. So this patch adds all the error patch for ext4_mb_init. And all the pointers are reset to NULL in case the caller may double free them. Signed-off-by: Tao Ma Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed