diff options
-rw-r--r-- | mm/slob.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/slob.c b/mm/slob.c index 03cce3d3d98..77786be032e 100644 --- a/mm/slob.c +++ b/mm/slob.c @@ -298,7 +298,8 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, c->align = (flags & SLAB_MUST_HWCACHE_ALIGN) ? SLOB_ALIGN : 0; if (c->align < align) c->align = align; - } + } else if (flags & SLAB_PANIC) + panic("Cannot create slab cache %s\n", name); return c; } |