Commit fc850609 authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: [clip] check return code from kmem_cache_create (by "Randy.Dunlap" <rddunlap@osdl.org>)

parent bfa0dfd9
...@@ -1021,6 +1021,9 @@ static int __init atm_clip_init(void) ...@@ -1021,6 +1021,9 @@ static int __init atm_clip_init(void)
clip_tbl.kmem_cachep = kmem_cache_create(clip_tbl.id, clip_tbl.kmem_cachep = kmem_cache_create(clip_tbl.id,
clip_tbl.entry_size, 0, SLAB_HWCACHE_ALIGN, NULL, NULL); clip_tbl.entry_size, 0, SLAB_HWCACHE_ALIGN, NULL, NULL);
if (!clip_tbl.kmem_cachep)
return -ENOMEM;
/* so neigh_ifdown() doesn't complain */ /* so neigh_ifdown() doesn't complain */
clip_tbl.proxy_timer.data = 0; clip_tbl.proxy_timer.data = 0;
clip_tbl.proxy_timer.function = 0; clip_tbl.proxy_timer.function = 0;
......
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