diff options
-rw-r--r-- | arch/powerpc/kernel/stacktrace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/stacktrace.c b/arch/powerpc/kernel/stacktrace.c index 80f92f5b5393..1deb1bf331dd 100644 --- a/arch/powerpc/kernel/stacktrace.c +++ b/arch/powerpc/kernel/stacktrace.c @@ -28,6 +28,9 @@ void arch_stack_walk(stack_trace_consume_fn consume_entry, void *cookie, { unsigned long sp; + if (regs && !consume_entry(cookie, regs->nip)) + return; + if (regs) sp = regs->gpr[1]; else if (task == current) |