net: marvell: prestera: fix missed deinit sequence
Subsystems (3)
PATCH 1/1 net: marvell: prestera: fix missed deinit sequence
Add unregister_fib_notifier as rollback of register_fib_notifier.
Fixes 4394fbcb78cf ("net: marvell: prestera: handle fib notifications")
Signed-off-by Yevhen Orlov <[email protected]>
--- drivers/net/ethernet/marvell/prestera/prestera_router.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/marvell/prestera/prestera_router.c +1 -0
@@ -588,6 +588,7 @@ int prestera_router_init(struct prestera_switch *sw)void prestera_router_fini (struct prestera_switch *sw) { +unregister_fib_notifier (&init_net, &sw->router->fib_nb);unregister_inetaddr_notifier (&sw->router->inetaddr_nb);unregister_inetaddr_validator_notifier (&sw->router->inetaddr_valid_nb);rhashtable_destroy (&sw->router->kern_fib_cache_ht);
Signature · 1 line
2.17.1
This patch was applied to netdev/net.git (master) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (master)
by Paolo Abeni <[email protected]>:
Quoted 7 lines · On Sun, 10 Jul 2022 15:20:21 +0300 you wrote:
Add
unregister_fib_notifieras rollback ofregister_fib_notifier.Fixes 4394fbcb78cf ("net: marvell: prestera: handle fib notifications")Signed-off-by Yevhen Orlov <[email protected]>--- drivers/net/ethernet/marvell/prestera/prestera_router.c | 1 + 1 file changed, 1 insertion(+)
Here is the summary with links:
- [net] net: marvell: prestera: fix missed deinit sequence
https://git.kernel.org/netdev/net/c/f946964a9f79
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html