Skip to content

Commit

Permalink
net: marvell: prestera: fix missed deinit sequence
Browse files Browse the repository at this point in the history
Add unregister_fib_notifier as rollback of register_fib_notifier.

Fixes: 4394fbc ("net: marvell: prestera: handle fib notifications")
Signed-off-by: Yevhen Orlov <yevhen.orlov@plvision.eu>
Link: https://lore.kernel.org/r/20220710122021.7642-1-yevhen.orlov@plvision.eu
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
  • Loading branch information
Yevhen Orlov authored and Paolo Abeni committed Jul 12, 2022
1 parent 4a46de4 commit f946964
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/marvell/prestera/prestera_router.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f946964

Please sign in to comment.