diff options
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 360464f40e96..c92bcfc5466e 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -3215,12 +3215,12 @@ void memcg_release_cache(struct kmem_cache *s) | |||
3215 | 3215 | ||
3216 | root = s->memcg_params->root_cache; | 3216 | root = s->memcg_params->root_cache; |
3217 | root->memcg_params->memcg_caches[id] = NULL; | 3217 | root->memcg_params->memcg_caches[id] = NULL; |
3218 | mem_cgroup_put(memcg); | ||
3219 | 3218 | ||
3220 | mutex_lock(&memcg->slab_caches_mutex); | 3219 | mutex_lock(&memcg->slab_caches_mutex); |
3221 | list_del(&s->memcg_params->list); | 3220 | list_del(&s->memcg_params->list); |
3222 | mutex_unlock(&memcg->slab_caches_mutex); | 3221 | mutex_unlock(&memcg->slab_caches_mutex); |
3223 | 3222 | ||
3223 | mem_cgroup_put(memcg); | ||
3224 | out: | 3224 | out: |
3225 | kfree(s->memcg_params); | 3225 | kfree(s->memcg_params); |
3226 | } | 3226 | } |