Netdev List
 help / color / mirror / Atom feed
* [PATCH 0/2] qlogic: fix and tidy notifier cleanup paths
@ 2026-07-28  3:20 Can Peng
  2026-07-28  3:20 ` [PATCH 1/2] netxen: unregister notifiers if PCI registration fails Can Peng
  2026-07-28  3:20 ` [PATCH 2/2] qlcnic: move notifier error cleanup under CONFIG_INET Can Peng
  0 siblings, 2 replies; 3+ messages in thread
From: Can Peng @ 2026-07-28  3:20 UTC (permalink / raw)
  To: manishc, rahulv, GR-Linux-NIC-Dev, andrew+netdev, davem, edumazet,
	kuba, pabeni
  Cc: netdev, linux-kernel, Can Peng

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-28  3:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28  3:20 [PATCH 0/2] qlogic: fix and tidy notifier cleanup paths Can Peng
2026-07-28  3:20 ` [PATCH 1/2] netxen: unregister notifiers if PCI registration fails Can Peng
2026-07-28  3:20 ` [PATCH 2/2] qlcnic: move notifier error cleanup under CONFIG_INET Can Peng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox