aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_fib.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-06-15 18:51:55 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-15 18:51:55 -0400
commit7e52b33bd50faa866bc3e6e97e68438bc5e52251 (patch)
tree46e68adf23f4f170a0eb5045c33a76234de6cf92 /net/ipv6/ip6_fib.c
parent91c8028c95a468da9c0aafd2d91cf24e27784206 (diff)
parent2a0c451ade8e1783c5d453948289e4a978d417c9 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: net/ipv6/route.c This deals with a merge conflict between the net-next addition of the inetpeer network namespace ops, and Thomas Graf's bug fix in 2a0c451ade8e1783c5d453948289e4a978d417c9 which makes sure we don't register /proc/net/ipv6_route before it is actually safe to do so. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_fib.c')
-rw-r--r--net/ipv6/ip6_fib.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 215afc74d8aa..a83bf067bdc5 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -1697,21 +1697,25 @@ int __init fib6_init(void)
1697 ret = register_pernet_subsys(&fib6_net_ops); 1697 ret = register_pernet_subsys(&fib6_net_ops);
1698 if (ret) 1698 if (ret)
1699 goto out_kmem_cache_create; 1699 goto out_kmem_cache_create;
1700
1701 ret = __rtnl_register(PF_INET6, RTM_GETROUTE, NULL, inet6_dump_fib,
1702 NULL);
1703 if (ret)
1704 goto out_unregister_subsys;
1705out: 1700out:
1706 return ret; 1701 return ret;
1707 1702
1708out_unregister_subsys:
1709 unregister_pernet_subsys(&fib6_net_ops);
1710out_kmem_cache_create: 1703out_kmem_cache_create:
1711 kmem_cache_destroy(fib6_node_kmem); 1704 kmem_cache_destroy(fib6_node_kmem);
1712 goto out; 1705 goto out;
1713} 1706}
1714 1707
1708int __init fib6_init_late(void)
1709{
1710 return __rtnl_register(PF_INET6, RTM_GETROUTE, NULL, inet6_dump_fib,
1711 NULL);
1712}
1713
1714void fib6_cleanup_late(void)
1715{
1716 rtnl_unregister(PF_INET6, RTM_GETROUTE);
1717}
1718
1715void fib6_gc_cleanup(void) 1719void fib6_gc_cleanup(void)
1716{ 1720{
1717 unregister_pernet_subsys(&fib6_net_ops); 1721 unregister_pernet_subsys(&fib6_net_ops);