diff options
author | Yevhen Orlov <yevhen.orlov@plvision.eu> | 2022-07-10 14:20:21 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-07-12 12:17:04 +0200 |
commit | f946964a9f79f8dcb5a6329265281eebfc23aee5 (patch) | |
tree | d0bb00184de6123d78bd9b2640dd6bb23efe5220 /drivers/net/ethernet/marvell/prestera | |
parent | selftest: net: add tun to .gitignore (diff) | |
download | linux-f946964a9f79f8dcb5a6329265281eebfc23aee5.tar.xz linux-f946964a9f79f8dcb5a6329265281eebfc23aee5.zip |
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 <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>
Diffstat (limited to 'drivers/net/ethernet/marvell/prestera')
-rw-r--r-- | drivers/net/ethernet/marvell/prestera/prestera_router.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/prestera/prestera_router.c b/drivers/net/ethernet/marvell/prestera/prestera_router.c index 3754d8aec76d..3c8116f16b4d 100644 --- a/drivers/net/ethernet/marvell/prestera/prestera_router.c +++ b/drivers/net/ethernet/marvell/prestera/prestera_router.c @@ -588,6 +588,7 @@ err_router_lib_init: 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); |