diff options
author | David S. Miller <davem@davemloft.net> | 2012-06-16 04:23:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-16 04:23:04 -0400 |
commit | aee289baaa02dd2ffa1189c1600d5572a10e0714 (patch) | |
tree | f9fa3cb33ead21400dbda2b19287f6f06754fcb6 /net/ipv6/ip6_fib.c | |
parent | 42ae66c80d94645e8f74080c7f344596d6f19cd5 (diff) | |
parent | e8803b6c387129059e04d9e14d49efda250a7361 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
net/ipv6/route.c
Pull in 'net' again to get the revert of Thomas's change
which introduced regressions.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_fib.c')
-rw-r--r-- | net/ipv6/ip6_fib.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index a83bf067bdc5..215afc74d8aa 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c | |||
@@ -1697,25 +1697,21 @@ 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; | ||
1700 | out: | 1705 | out: |
1701 | return ret; | 1706 | return ret; |
1702 | 1707 | ||
1708 | out_unregister_subsys: | ||
1709 | unregister_pernet_subsys(&fib6_net_ops); | ||
1703 | out_kmem_cache_create: | 1710 | out_kmem_cache_create: |
1704 | kmem_cache_destroy(fib6_node_kmem); | 1711 | kmem_cache_destroy(fib6_node_kmem); |
1705 | goto out; | 1712 | goto out; |
1706 | } | 1713 | } |
1707 | 1714 | ||
1708 | int __init fib6_init_late(void) | ||
1709 | { | ||
1710 | return __rtnl_register(PF_INET6, RTM_GETROUTE, NULL, inet6_dump_fib, | ||
1711 | NULL); | ||
1712 | } | ||
1713 | |||
1714 | void fib6_cleanup_late(void) | ||
1715 | { | ||
1716 | rtnl_unregister(PF_INET6, RTM_GETROUTE); | ||
1717 | } | ||
1718 | |||
1719 | void fib6_gc_cleanup(void) | 1715 | void fib6_gc_cleanup(void) |
1720 | { | 1716 | { |
1721 | unregister_pernet_subsys(&fib6_net_ops); | 1717 | unregister_pernet_subsys(&fib6_net_ops); |