[rh7] mm/memcg: restore lost css_put() in memcg_kmem_cache_create_func()

Submitted by Andrey Ryabinin on Oct. 10, 2019, 8:21 a.m.

Details

Message ID 20191010082114.28661-1-aryabinin@virtuozzo.com
State New
Headers show

Patch hide | download patch | download mbox

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index d499deb94453..74696414874e 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3636,6 +3636,7 @@  static void memcg_kmem_cache_create_func(struct work_struct *w)
 
 	memcg_create_kmem_cache(memcg, cachep);
 
+	css_put(&memcg->css);
 	kfree(cw);
 }