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

[IPV4]: Handle kmem_cache_create() failure in inetpeer.c

parent 6d9ad441
...@@ -129,6 +129,9 @@ void __init inet_initpeers(void) ...@@ -129,6 +129,9 @@ void __init inet_initpeers(void)
0, SLAB_HWCACHE_ALIGN, 0, SLAB_HWCACHE_ALIGN,
NULL, NULL); NULL, NULL);
if (!peer_cachep)
panic("cannot create inet_peer_cache");
/* All the timers, started at system startup tend /* All the timers, started at system startup tend
to synchronize. Perturb it a bit. to synchronize. Perturb it a bit.
*/ */
......
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