]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Protect against NULL pointer deref in phyp-dump code
authorTony Breeds <tony@bakeyournoodle.com>
Mon, 15 Dec 2008 18:17:48 +0000 (18:17 +0000)
committerPaul Mackerras <paulus@samba.org>
Sun, 21 Dec 2008 03:21:14 +0000 (14:21 +1100)
commit7a2eab0d4e656341cc0f6481d722d410f0414f0b
tree12fef29982befe9469e2066b293639629e6b824a
parent8168b5400b06353293f9844976435886eb2a8ff2
powerpc: Protect against NULL pointer deref in phyp-dump code

print_dump_header() will be called at least once with a NULL pointer in
a normal boot sequence.  If DEBUG is defined then we will dereference
the pointer and crash.  Add a quick fix to exit early in the NULL pointer
case.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Acked-by: Manish Ahuja <mahujam@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/phyp_dump.c