summaryrefslogtreecommitdiff
path: root/tools/firewire
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-02-28 01:03:29 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-28 03:10:12 (GMT)
commitb92e7e0daed31389ff5ad9f558ef1284c846f6ee (patch)
tree33ba2fe02e93a4af156f6425ac6dd0c5355b1980 /tools/firewire
parentfe88f2ee33731f0934e8fb26f762b6715e43ff6f (diff)
downloadlinux-b92e7e0daed31389ff5ad9f558ef1284c846f6ee.tar.xz
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 <zhangyanfei@cn.fujitsu.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Sasha Levin <sasha.levin@oracle.com> Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/firewire')
0 files changed, 0 insertions, 0 deletions