X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Fpanic.c;h=b6c482ccc5db77f4af0afbb0948ff0373bb094d5;hb=e9ff04dd94d46c817bbb103531cdef6e7bd5d022;hp=8018646005144c4082da694b331a1f44964134d6;hpb=b59f2b4d30c187160df597bae41cabe497b6acf4;p=~andy%2Flinux diff --git a/kernel/panic.c b/kernel/panic.c index 80186460051..b6c482ccc5d 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -123,10 +123,14 @@ void panic(const char *fmt, ...) */ smp_send_stop(); - kmsg_dump(KMSG_DUMP_PANIC); - + /* + * Run any panic handlers, including those that might need to + * add information to the kmsg dump output. + */ atomic_notifier_call_chain(&panic_notifier_list, 0, buf); + kmsg_dump(KMSG_DUMP_PANIC); + bust_spinlocks(0); if (!panic_blink)