X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=kernel%2Fpanic.c;h=4b150bc0c6c111ee09f783eaa6aa101339f6ceec;hb=a3b11c79addf5613c4a10b27349f862e1e0f5bfe;hp=4579dbb7ed872a7e1c119fdbbf98d9dc8cd67a87;hpb=c0d6fe2f01c475cc137d90607a07578586883df8;p=firefly-linux-kernel-4.4.55.git 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();