From: Dan Carpenter Date: Mon, 28 May 2012 18:16:57 +0000 (-0400) Subject: ext4: fix potential NULL dereference in ext4_free_inodes_counts() X-Git-Tag: v3.5-rc1~16^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb3d132a24cd8bf5e7773b2d9f9baa58b07a7dae;p=pandora-kernel.git ext4: fix potential NULL dereference in ext4_free_inodes_counts() The ext4_get_group_desc() function returns NULL on error, and ext4_free_inodes_count() function dereferences it without checking. There is a check on the next line, but it's too late. Reviewed-by: Jan Kara Signed-off-by: Dan Carpenter Signed-off-by: "Theodore Ts'o" Cc: stable@kernel.org --- Reading git-diff-tree failed