diff options
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3345,6 +3345,9 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, | |||
3345 | { | 3345 | { |
3346 | struct kmem_cache *s; | 3346 | struct kmem_cache *s; |
3347 | 3347 | ||
3348 | if (WARN_ON(!name)) | ||
3349 | return NULL; | ||
3350 | |||
3348 | down_write(&slub_lock); | 3351 | down_write(&slub_lock); |
3349 | s = find_mergeable(size, align, flags, name, ctor); | 3352 | s = find_mergeable(size, align, flags, name, ctor); |
3350 | if (s) { | 3353 | if (s) { |