Commit ffb1388a authored by Duan Jiong's avatar Duan Jiong Committed by David S. Miller

ipv6: delete protocol and unregister rtnetlink when cleanup

pim6_protocol was added when initiation, but it not deleted.
Similarly, unregister RTNL_FAMILY_IP6MR rtnetlink.
Signed-off-by: default avatarDuan Jiong <duanj.fnst@cn.fujitsu.com>
Reviewed-by: default avatarCong Wang <cwang@twopensource.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ddecab1a
...@@ -1439,6 +1439,10 @@ int __init ip6_mr_init(void) ...@@ -1439,6 +1439,10 @@ int __init ip6_mr_init(void)
void ip6_mr_cleanup(void) void ip6_mr_cleanup(void)
{ {
rtnl_unregister(RTNL_FAMILY_IP6MR, RTM_GETROUTE);
#ifdef CONFIG_IPV6_PIMSM_V2
inet6_del_protocol(&pim6_protocol, IPPROTO_PIM);
#endif
unregister_netdevice_notifier(&ip6_mr_notifier); unregister_netdevice_notifier(&ip6_mr_notifier);
unregister_pernet_subsys(&ip6mr_net_ops); unregister_pernet_subsys(&ip6mr_net_ops);
kmem_cache_destroy(mrt_cachep); kmem_cache_destroy(mrt_cachep);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment