From: Vahram Martirosyan Date: Wed, 28 Nov 2012 17:44:16 +0000 (-0500) Subject: ext4: fixed potential NULL dereference in ext4_calculate_overhead() X-Git-Tag: v3.8-rc1~89^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=766f44d46a726cb59f52a75c5c87425a10c4bade;p=pandora-kernel.git ext4: fixed potential NULL dereference in ext4_calculate_overhead() The memset operation before check can cause a BUG if the memory allocation failed. Since we are using get_zeroed_age, there is no need to use memset anyway. Found by the Spruce system in cooperation with the KEDR Framework. Signed-off-by: Vahram Martirosyan Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed