mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net] net: marvell: prestera: fix missed deinit sequence
@ 2022-07-10 12:20 Yevhen Orlov
  2022-07-12 10:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Yevhen Orlov @ 2022-07-10 12:20 UTC (permalink / raw)
  To: netdev
  Cc: Volodymyr Mytnyk, Taras Chornyi, Mickey Rachamim, Serhiy Pshyk,
	Yevhen Orlov, Taras Chornyi, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Oleksandr Mazur, linux-kernel

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>
---
 drivers/net/ethernet/marvell/prestera/prestera_router.c | 1 +
 1 file changed, 1 insertion(+)

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 @@ 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);
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net] net: marvell: prestera: fix missed deinit sequence
  2022-07-10 12:20 [PATCH net] net: marvell: prestera: fix missed deinit sequence Yevhen Orlov
@ 2022-07-12 10:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-07-12 10:30 UTC (permalink / raw)
  To: Yevhen Orlov
  Cc: netdev, volodymyr.mytnyk, taras.chornyi, mickeyr, serhiy.pshyk,
	tchornyi, davem, edumazet, kuba, pabeni, oleksandr.mazur,
	linux-kernel

Hello:

This patch was applied to netdev/net.git (master)
by Paolo Abeni <pabeni@redhat.com>:

On Sun, 10 Jul 2022 15:20:21 +0300 you wrote:
> 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>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-12 10:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-10 12:20 [PATCH net] net: marvell: prestera: fix missed deinit sequence Yevhen Orlov
2022-07-12 10:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®