]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[IA64] Fix NULL-pointer dereference in ia64_machine_kexec()
authorBernhard Walle <bwalle@suse.de>
Sun, 28 Jan 2007 12:47:02 +0000 (13:47 +0100)
committerTony Luck <tony.luck@intel.com>
Mon, 5 Feb 2007 22:06:44 +0000 (14:06 -0800)
commitc2c77fe8df3e0322a613ba1540910632ad14d96d
tree38a6da2e1995b3050e32947019b1166e380c1ec5
parent87f76d3aafe5b5e0a1d6d857088a0263b35afa6b
[IA64] Fix NULL-pointer dereference in ia64_machine_kexec()

This patch fixes a NULL-pointer dereference in ia64_machine_kexec().

The variable ia64_kimage is set in machine_kexec_prepare() which is
called from sys_kexec_load(). If kdump wasn't configured before,
ia64_kimage is NULL.  machine_kdump_on_init() passes ia64_kimage() to
machine_kexec() which assumes a valid value.

The patch also adds a few sanity checks for the image to simplify
debugging of similar problems in future.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/crash.c
arch/ia64/kernel/machine_kexec.c