Skip to content

Commit d014e88

Browse files
aakoskinIngo Molnar
authored andcommitted
panic: Fix panic message visibility by calling bust_spinlocks(0) before dying
Commit ffd71da ("panic: decrease oops_in_progress only after having done the panic") moved bust_spinlocks(0) to the end of the function, which in practice is never reached. As a result console_unblank() is not called, and on some systems the user may not see the panic message. Move it back up to before the unblanking. Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com> Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <1254483680-25578-1-git-send-email-aaro.koskinen@nokia.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 135c8ae commit d014e88

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/panic.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ NORET_TYPE void panic(const char * fmt, ...)
9090

9191
atomic_notifier_call_chain(&panic_notifier_list, 0, buf);
9292

93+
bust_spinlocks(0);
94+
9395
if (!panic_blink)
9496
panic_blink = no_blink;
9597

@@ -136,7 +138,6 @@ NORET_TYPE void panic(const char * fmt, ...)
136138
mdelay(1);
137139
i++;
138140
}
139-
bust_spinlocks(0);
140141
}
141142

142143
EXPORT_SYMBOL(panic);

0 commit comments

Comments
 (0)