[PATCH 0/2] qlogic: fix and tidy notifier cleanup paths

From: Can Peng

Date: Mon Jul 27 2026 - 23:28:59 EST


Hi,

This series fixes and tidies notifier cleanup in the qlogic Ethernet
drivers.

Patch 1 fixes netxen by unregistering the netdevice and inetaddr
notifiers if pci_register_driver() fails. Without this, module init can
return an error while leaving callbacks registered for a module that did
not load successfully.

Patch 2 keeps qlcnic's existing notifier cleanup error path under the
same CONFIG_INET guard as the notifier registration, avoiding an empty
if statement when CONFIG_INET is disabled.

Can Peng (2):
netxen: unregister notifiers if PCI registration fails
qlcnic: move notifier error cleanup under CONFIG_INET

.../net/ethernet/qlogic/netxen/netxen_nic_main.c | 13 ++++++++++++-
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 4 ++--
2 files changed, 14 insertions(+), 3 deletions(-)

--
2.53.0