diff --git a/kernel/panic.c b/kernel/panic.c index 8136ad76e5fd3ea2bcc6d556a9508e86c49761aa..774614f72cbd04961cdc62fb68e91dffeb651f03 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -142,7 +142,8 @@ void panic(const char *fmt, ...) * Note: since some panic_notifiers can make crashed kernel * more unstable, it can increase risks of the kdump failure too. */ - crash_kexec(NULL); + if (crash_kexec_post_notifiers) + crash_kexec(NULL); bust_spinlocks(0);