From: Zhang Yanfei Date: Thu, 28 Feb 2013 01:03:29 +0000 (-0800) Subject: kexec: fix memory leak in function kimage_normal_alloc X-Git-Tag: v3.9-rc1~46^2~123 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b92e7e0daed31389ff5ad9f558ef1284c846f6ee;p=pandora-kernel.git kexec: fix memory leak in function kimage_normal_alloc If kimage_normal_alloc() fails to alloc pages for image->swap_page, it should call kimage_free_page_list() to free allocated pages in image->control_pages list before it frees image. 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