From: Zhang Yanfei Date: Thu, 28 Feb 2013 01:03:31 +0000 (-0800) Subject: kexec: avoid freeing NULL pointer in image_crash_alloc() X-Git-Tag: v3.9-rc1~46^2~122 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c333ac2e4946a673b54f974d75397c947569c29;p=pandora-kernel.git kexec: avoid freeing NULL pointer in image_crash_alloc() Though there is no error if we free a NULL pointer, I think we could avoid this behaviour. Change the code a little in kimage_crash_alloc() could avoid this kind of unnecessary free. Signed-off-by: Zhang Yanfei Cc: "Eric W. Biederman" Cc: Sasha Levin Reviewed-by: Simon Horman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed