Skip to content

Commit

Permalink
sh: kgdb: Fix up NULL pointer deref by kgdb_nmicallback.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Apr 10, 2012
1 parent 10c5e4e commit fd34ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd34ef9

Please sign in to comment.