Message ID | 20211108101157.15189-30-bp@alien8.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | None | expand |
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index be5f85b0a24d..e66af9de7cd7 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -440,8 +440,10 @@ static struct notifier_block arm64_panic_block = { static int __init register_arm64_panic_block(void) { - atomic_notifier_chain_register(&panic_notifier_list, - &arm64_panic_block); + if (atomic_notifier_chain_register(&panic_notifier_list, + &arm64_panic_block)) + pr_warn("Panic notifier already registered\n"); + return 0; } device_initcall(register_arm64_panic_block);