aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-09-26 10:52:34 +0200
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 10:52:34 +0200
commitbe7a91709b90825990e571b2f20cea937d5eef6c (patch)
treefe09719e040b6d2ae535a08958f7e57f8a9babe6 /arch
parentc0b766f13d8e1189ce4d00e54700c9d96b543b9a (diff)
downloadkernel_samsung_smdk4412-be7a91709b90825990e571b2f20cea937d5eef6c.zip
kernel_samsung_smdk4412-be7a91709b90825990e571b2f20cea937d5eef6c.tar.gz
kernel_samsung_smdk4412-be7a91709b90825990e571b2f20cea937d5eef6c.tar.bz2
[PATCH] Check for end of stack trace before falling back
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/kernel/traps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index 4ac18b0..28e5334 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)