Commit d25a57c7 authored by Walter Harms's avatar Walter Harms Committed by David S. Miller

[IPV6]: Handle kmem_cache_create() failure in ip6_fib.c

parent b74d93d2
......@@ -1239,6 +1239,8 @@ void __init fib6_init(void)
sizeof(struct fib6_node),
0, SLAB_HWCACHE_ALIGN,
NULL, NULL);
if (!fib6_node_kmem)
panic("cannot create fib6_nodes cache");
}
void __exit fib6_gc_cleanup(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment