diff options
Diffstat (limited to 'mm/slab_common.c')
-rw-r--r-- | mm/slab_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c index f18c06fd97c7..adc42b01b25b 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c | |||
@@ -115,6 +115,10 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, size_t align | |||
115 | goto out_locked; | 115 | goto out_locked; |
116 | } | 116 | } |
117 | 117 | ||
118 | s = __kmem_cache_alias(name, size, align, flags, ctor); | ||
119 | if (s) | ||
120 | goto out_locked; | ||
121 | |||
118 | s = __kmem_cache_create(n, size, align, flags, ctor); | 122 | s = __kmem_cache_create(n, size, align, flags, ctor); |
119 | 123 | ||
120 | if (s) { | 124 | if (s) { |