Skip to content

Commit

Permalink
[PATCH] i386: Terminate backtrace fallback early if unwinder stack po…
Browse files Browse the repository at this point in the history
…inter is zero

Cc: jbeulich@novell.com
Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Sep 26, 2006
1 parent 2b14a78 commit 950fee8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/i386/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 950fee8

Please sign in to comment.