summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHaoxiang Li <haoxiang_li2024@163.com>2026-06-23 19:57:14 +0800
committerJakub Kicinski <kuba@kernel.org>2026-06-25 08:54:04 -0700
commit483be61b4a9a6df3b7cb277e8f189e082dee4cb8 (patch)
treed030070376c8edc6c454c59fec553c83bd532952 /include/linux
parent106f6b1dfa1f45f116c5c700342188a3cd4a4b9f (diff)
net: sparx5: unregister blocking notifier on init failure
sparx5_register_notifier_blocks() registers the switchdev blocking notifier before allocating the ordered workqueue. If the workqueue allocation fails, the error path unregisters the switchdev and netdevice notifiers, but leaves the blocking notifier registered. Add a separate error label for the workqueue allocation failure path and unregister the switchdev blocking notifier there. Fixes: d6fce5141929 ("net: sparx5: add switching support") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260623115714.2192074-1-haoxiang_li2024@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions