[PATCH] Check for end of stack trace before falling back
Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
parent
c0b766f13d
commit
be7a91709b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue