diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-04-10 14:22:39 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-04-10 14:22:39 +0900 |
commit | fd34ef9bc44b87d746b7178e9c4ba51163b46884 (patch) | |
tree | dd1f66b00d580be648134e666055a2d5e609f583 /arch/sh/kernel | |
parent | 10c5e4e137dc97e54cabd62a6109988ff8670faa (diff) |
sh: kgdb: Fix up NULL pointer deref by kgdb_nmicallback.
kgdb_nmicallback expects valid register state, so just fetch the register
state with get_irq_regs() as on other platforms.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/kgdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c index ba8e76325d1..38b313909ac 100644 --- a/arch/sh/kernel/kgdb.c +++ b/arch/sh/kernel/kgdb.c @@ -313,7 +313,7 @@ BUILD_TRAP_HANDLER(singlestep) static void kgdb_call_nmi_hook(void *ignored) { - kgdb_nmicallback(raw_smp_processor_id(), NULL); + kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs()); } void kgdb_roundup_cpus(unsigned long flags) |