aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index c66908983218..24aa362edef7 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3975,7 +3975,6 @@ struct kmem_cache *__kmem_cache_create(const char *name, size_t size,
3975 size, align, flags, ctor)) { 3975 size, align, flags, ctor)) {
3976 int r; 3976 int r;
3977 3977
3978 list_add(&s->list, &slab_caches);
3979 mutex_unlock(&slab_mutex); 3978 mutex_unlock(&slab_mutex);
3980 r = sysfs_slab_add(s); 3979 r = sysfs_slab_add(s);
3981 mutex_lock(&slab_mutex); 3980 mutex_lock(&slab_mutex);
@@ -3983,7 +3982,6 @@ struct kmem_cache *__kmem_cache_create(const char *name, size_t size,
3983 if (!r) 3982 if (!r)
3984 return s; 3983 return s;
3985 3984
3986 list_del(&s->list);
3987 kmem_cache_close(s); 3985 kmem_cache_close(s);
3988 } 3986 }
3989 kmem_cache_free(kmem_cache, s); 3987 kmem_cache_free(kmem_cache, s);