We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d8a765 commit 7625b3aCopy full SHA for 7625b3a
kernel/panic.c
@@ -152,8 +152,11 @@ void panic(const char *fmt, ...)
152
* We may have ended up stopping the CPU holding the lock (in
153
* smp_send_stop()) while still having some valuable data in the console
154
* buffer. Try to acquire the lock then release it regardless of the
155
- * result. The release will also print the buffers out.
+ * result. The release will also print the buffers out. Locks debug
156
+ * should be disabled to avoid reporting bad unlock balance when
157
+ * panic() is not being callled from OOPS.
158
*/
159
+ debug_locks_off();
160
console_trylock();
161
console_unlock();
162
0 commit comments