diff options
| author | Can Peng <pengcan@kylinos.cn> | 2026-07-28 11:20:45 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-03 16:21:00 -0700 |
| commit | e8aaf6ba33c7d875523fcbae20fbd70ab57f9c48 (patch) | |
| tree | 7e624e0f524f0c88b45e9f1f210f2cb12834f1f4 /tools/perf/scripts/python/bin | |
| parent | d661abdc30c254649c32ef6e0aa1e621e04ff0a7 (diff) | |
netxen: unregister notifiers if PCI registration fails
netxen_init_module() registers the netdevice and inetaddr notifiers before
registering the PCI driver. If pci_register_driver() fails, the function
returns the error directly and leaves both notifiers registered.
That leaves notifier callbacks installed for a module that failed to load.
Mirror the module exit path on this failure and unregister the notifiers
before returning the error.
Cc: stable+noautosel@kernel.org # untested fix to unlikely driver error path
Signed-off-by: Can Peng <pengcan@kylinos.cn>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20260728032046.121631-2-pengcan@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
