Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd34ef9b authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 10c5e4e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)