aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6mr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r--net/ipv6/ip6mr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index c491fb98a5e3..b17377d6f260 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -980,14 +980,15 @@ int __init ip6_mr_init(void)
980 goto proc_cache_fail; 980 goto proc_cache_fail;
981#endif 981#endif
982 return 0; 982 return 0;
983reg_notif_fail:
984 kmem_cache_destroy(mrt_cachep);
985#ifdef CONFIG_PROC_FS 983#ifdef CONFIG_PROC_FS
986proc_vif_fail:
987 unregister_netdevice_notifier(&ip6_mr_notifier);
988proc_cache_fail: 984proc_cache_fail:
989 proc_net_remove(&init_net, "ip6_mr_vif"); 985 proc_net_remove(&init_net, "ip6_mr_vif");
986proc_vif_fail:
987 unregister_netdevice_notifier(&ip6_mr_notifier);
990#endif 988#endif
989reg_notif_fail:
990 del_timer(&ipmr_expire_timer);
991 kmem_cache_destroy(mrt_cachep);
991 return err; 992 return err;
992} 993}
993 994