netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipv6: delete protocol when cleanup
@ 2014-11-18 10:35 Duan Jiong
  2014-11-18 18:56 ` Cong Wang
  0 siblings, 1 reply; 8+ messages in thread
From: Duan Jiong @ 2014-11-18 10:35 UTC (permalink / raw)
  To: David Miller; +Cc: netdev


pim6_protocol was added when initiation, but it not deleted.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
 net/ipv6/ip6mr.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 0171f08..6dcdecd 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -1439,6 +1439,9 @@ reg_pernet_fail:
 
 void ip6_mr_cleanup(void)
 {
+#ifdef CONFIG_IPV6_PIMSM_V2
+	inet6_del_protocol(&pim6_protocol, IPPROTO_PIM);
+#endif
 	unregister_netdevice_notifier(&ip6_mr_notifier);
 	unregister_pernet_subsys(&ip6mr_net_ops);
 	kmem_cache_destroy(mrt_cachep);
-- 
1.8.3.1

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

end of thread, other threads:[~2014-11-19 21:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-18 10:35 [PATCH] ipv6: delete protocol when cleanup Duan Jiong
2014-11-18 18:56 ` Cong Wang
2014-11-18 19:14   ` Eric Dumazet
2014-11-18 19:46     ` Cong Wang
2014-11-19  1:10   ` Duan Jiong
2014-11-19  1:35   ` [PATCH v2] ipv6: delete protocol and unregister rtnetlink " Duan Jiong
2014-11-19 19:46     ` Cong Wang
2014-11-19 21:55     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).