summaryrefslogtreecommitdiff
path: root/kernel/panic.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-11-27 13:41:11 +0100
committerTakashi Iwai <tiwai@suse.de>2015-11-27 13:41:11 +0100
commit3fb42daaf11c4be8e0626b733916f3a7b65bcfae (patch)
treed40ab1904047d2db03c9f6e9b538e01d62415646 /kernel/panic.c
parentefdbe3c3edb6c8c98a8be863f60916780a5375c1 (diff)
parent06a691e64b11323a735db3c3bd909d3c0712698f (diff)
Merge branch 'for-linus' into for-next
Diffstat (limited to 'kernel/panic.c')
-rw-r--r--kernel/panic.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 4579dbb7ed87..4b150bc0c6c1 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -152,8 +152,11 @@ void panic(const char *fmt, ...)
* We may have ended up stopping the CPU holding the lock (in
* smp_send_stop()) while still having some valuable data in the console
* buffer. Try to acquire the lock then release it regardless of the
- * result. The release will also print the buffers out.
+ * result. The release will also print the buffers out. Locks debug
+ * should be disabled to avoid reporting bad unlock balance when
+ * panic() is not being callled from OOPS.
*/
+ debug_locks_off();
console_trylock();
console_unlock();