Message ID | 20211108101157.15189-16-bp@alien8.de (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | None | expand |
diff --git a/drivers/target/tcm_fc/tfc_conf.c b/drivers/target/tcm_fc/tfc_conf.c index 1a38c98f681b..28960f68de08 100644 --- a/drivers/target/tcm_fc/tfc_conf.c +++ b/drivers/target/tcm_fc/tfc_conf.c @@ -465,7 +465,9 @@ static int __init ft_init(void) if (ret) goto out_unregister_template; - blocking_notifier_chain_register(&fc_lport_notifier_head, &ft_notifier); + if (blocking_notifier_chain_register(&fc_lport_notifier_head, &ft_notifier)) + pr_warn("FC lport notifier already registered\n"); + fc_lport_iterate(ft_lport_add, NULL); return 0;