Message ID | 1338881321-10728-1-git-send-email-linus.walleij@stericsson.com |
---|---|
State | New |
Headers | show |
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 4928d89..42a5057 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c @@ -25,6 +25,7 @@ #include <linux/delay.h> #include <linux/init.h> #include <linux/sched.h> +#include <linux/console.h> #include <linux/atomic.h> #include <asm/cacheflush.h> @@ -273,6 +274,9 @@ void die(const char *str, struct pt_regs *regs, int err) int ret; enum bug_trap_type bug_type = BUG_TRAP_TYPE_NONE; + /* ensure that backtrace will be printed in console */ + console_unlock(); + oops_enter(); raw_spin_lock_irq(&die_lock);