mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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 @@ reg_pernet_fail:
|
|||||||
|
|
||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user