aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/kgdb.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2012-04-10 14:22:39 +0900
committerPaul Mundt <lethal@linux-sh.org>2012-04-10 14:22:39 +0900
commitfd34ef9bc44b87d746b7178e9c4ba51163b46884 (patch)
treedd1f66b00d580be648134e666055a2d5e609f583 /arch/sh/kernel/kgdb.c
parentsh: kgdb: Fill out sleeping_thread_to_gdb_regs() state. (diff)
downloadlinux-dev-fd34ef9bc44b87d746b7178e9c4ba51163b46884.tar.xz
linux-dev-fd34ef9bc44b87d746b7178e9c4ba51163b46884.zip
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/kgdb.c')
-rw-r--r--arch/sh/kernel/kgdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c
index ba8e76325d12..38b313909ac9 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)