diff --git a/mm/slab_common.c b/mm/slab_common.c index e03dd6f2a27212768fb3f623115cea9f3579a06a..67f182c10f24d230a7ed8245bdfa813a99c067d2 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -331,7 +331,7 @@ do_kmem_cache_create(char *name, size_t object_size, size_t size, size_t align, out_free_cache: memcg_free_cache_params(s); - kfree(s); + kmem_cache_free(kmem_cache, s); goto out; }