|
@@ -2474,7 +2474,10 @@ int __init ip6_route_init(void)
|
|
|
|
|
|
ip6_dst_ops.kmem_cachep =
|
|
ip6_dst_ops.kmem_cachep =
|
|
kmem_cache_create("ip6_dst_cache", sizeof(struct rt6_info), 0,
|
|
kmem_cache_create("ip6_dst_cache", sizeof(struct rt6_info), 0,
|
|
- SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
|
|
|
|
|
|
+ SLAB_HWCACHE_ALIGN, NULL);
|
|
|
|
+ if (!ip6_dst_ops.kmem_cachep)
|
|
|
|
+ return -ENOMEM;
|
|
|
|
+
|
|
ip6_dst_blackhole_ops.kmem_cachep = ip6_dst_ops.kmem_cachep;
|
|
ip6_dst_blackhole_ops.kmem_cachep = ip6_dst_ops.kmem_cachep;
|
|
|
|
|
|
ret = fib6_init();
|
|
ret = fib6_init();
|