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: Duan Jiong <duanj.fnst@cn.fujitsu.com> Reviewed-by: Cong Wang <cwang@twopensource.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ddecab1abc
commit
ffb1388a36
|
@ -1439,6 +1439,10 @@ int __init ip6_mr_init(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_pernet_subsys(&ip6mr_net_ops);
|
||||
kmem_cache_destroy(mrt_cachep);
|
||||
|
|
Loading…
Reference in New Issue