Message ID | 20211108101157.15189-3-bp@alien8.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | None | expand |
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 95d970359e17..2264dd6e157f 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -354,7 +354,9 @@ static struct notifier_block xen_panic_block = { int xen_panic_handler_init(void) { - atomic_notifier_chain_register(&panic_notifier_list, &xen_panic_block); + if (atomic_notifier_chain_register(&panic_notifier_list, &xen_panic_block)) + pr_warn("Xen panic notifier already registered\n"); + return 0; }