[PATCH] i386: Terminate backtrace fallback early if unwinder stack pointer is zero

Cc: jbeulich@novell.com
Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
Andi Kleen 2006-09-26 10:52:34 +02:00 committed by Andi Kleen
parent 2b14a78cd0
commit 950fee8455

View File

@ -197,6 +197,8 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
if (UNW_SP(&info) >= PAGE_OFFSET) {
ops->warning(data, "Leftover inexact backtrace:\n");
stack = (void *)UNW_SP(&info);
if (!stack)
return;
} else
ops->warning(data, "Full inexact backtrace again:\n");
} else if (call_trace >= 1)