diff options
-rw-r--r-- | mm/slob.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -298,7 +298,8 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, | |||
298 | c->align = (flags & SLAB_MUST_HWCACHE_ALIGN) ? SLOB_ALIGN : 0; | 298 | c->align = (flags & SLAB_MUST_HWCACHE_ALIGN) ? SLOB_ALIGN : 0; |
299 | if (c->align < align) | 299 | if (c->align < align) |
300 | c->align = align; | 300 | c->align = align; |
301 | } | 301 | } else if (flags & SLAB_PANIC) |
302 | panic("Cannot create slab cache %s\n", name); | ||
302 | 303 | ||
303 | return c; | 304 | return c; |
304 | } | 305 | } |