diff --git a/kernel/panic.c b/kernel/panic.c index b2251acee..cbcf26f35 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -122,6 +122,7 @@ void panic(const char *fmt, ...) * after the panic_lock is acquired) from invoking panic again. */ local_irq_disable(); + preempt_disable_notrace(); /* * It's possible to come here directly from a panic-assertion and