From: Yu Jian Date: Mon, 1 Aug 2011 21:41:46 +0000 (-0400) Subject: ext4: prevent memory leaks from ext4_mb_init_backend() on error path X-Git-Tag: v3.1-rc1~90^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79a77c5ac;p=pandora-kernel.git ext4: prevent memory leaks from ext4_mb_init_backend() on error path 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 Signed-off-by: Andreas Dilger Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed