|
@@ -420,7 +420,8 @@ static int __init mbcache_init(void)
|
|
mb_entry_cache = kmem_cache_create("mbcache",
|
|
mb_entry_cache = kmem_cache_create("mbcache",
|
|
sizeof(struct mb_cache_entry), 0,
|
|
sizeof(struct mb_cache_entry), 0,
|
|
SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, NULL);
|
|
SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, NULL);
|
|
- BUG_ON(!mb_entry_cache);
|
|
|
|
|
|
+ if (!mb_entry_cache)
|
|
|
|
+ return -ENOMEM;
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|