[PATCH] Check for end of stack trace before falling back

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 c0b766f13d
commit be7a91709b
1 changed files with 2 additions and 0 deletions

View File

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