From: Andi Kleen Date: Tue, 26 Sep 2006 08:52:34 +0000 (+0200) Subject: [PATCH] Check for end of stack trace before falling back X-Git-Tag: v2.6.19-rc1~1077^2~112 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be7a91709b90825990e571b2f20cea937d5eef6c;p=linux-2.6 [PATCH] Check for end of stack trace before falling back Signed-off-by: Andi Kleen --- diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c index 4ac18b02ea..28e53342f2 100644 --- a/arch/x86_64/kernel/traps.c +++ b/arch/x86_64/kernel/traps.c @@ -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)