aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_fib.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ip6_fib.c')
-rw-r--r--net/ipv6/ip6_fib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index c100b44f2b87..5fae04506ad9 100644
--- a/net/ipv6/ip6_fib.c
+++ b/net/ipv6/ip6_fib.c
@@ -1478,8 +1478,11 @@ int __init fib6_init(void)
1478 int ret; 1478 int ret;
1479 fib6_node_kmem = kmem_cache_create("fib6_nodes", 1479 fib6_node_kmem = kmem_cache_create("fib6_nodes",
1480 sizeof(struct fib6_node), 1480 sizeof(struct fib6_node),
1481 0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, 1481 0, SLAB_HWCACHE_ALIGN,
1482 NULL); 1482 NULL);
1483 if (!fib6_node_kmem)
1484 return -ENOMEM;
1485
1483 fib6_tables_init(); 1486 fib6_tables_init();
1484 1487
1485 ret = __rtnl_register(PF_INET6, RTM_GETROUTE, NULL, inet6_dump_fib); 1488 ret = __rtnl_register(PF_INET6, RTM_GETROUTE, NULL, inet6_dump_fib);