diff options
author | 2008-12-15 18:17:48 +0000 | |
---|---|---|
committer | 2008-12-21 14:21:14 +1100 | |
commit | 7a2eab0d4e656341cc0f6481d722d410f0414f0b (patch) | |
tree | 12fef29982befe9469e2066b293639629e6b824a /arch/powerpc/kernel/module.c | |
parent | powerpc: Rename struct vm_region to avoid conflict with NOMMU (diff) | |
download | linux-rng-7a2eab0d4e656341cc0f6481d722d410f0414f0b.tar.xz linux-rng-7a2eab0d4e656341cc0f6481d722d410f0414f0b.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/module.c')
0 files changed, 0 insertions, 0 deletions