aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/panic.c')
-rw-r--r--kernel/panic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 8136ad76e5fd..774614f72cbd 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -142,7 +142,8 @@ void panic(const char *fmt, ...)
142 * Note: since some panic_notifiers can make crashed kernel 142 * Note: since some panic_notifiers can make crashed kernel
143 * more unstable, it can increase risks of the kdump failure too. 143 * more unstable, it can increase risks of the kdump failure too.
144 */ 144 */
145 crash_kexec(NULL); 145 if (crash_kexec_post_notifiers)
146 crash_kexec(NULL);
146 147
147 bust_spinlocks(0); 148 bust_spinlocks(0);
148 149