Message ID | 20200616195713.UahlG%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + mm-memcontrol-fix-do-not-put-the-css-reference.patch added to -mm tree | expand |
--- a/mm/memcontrol.c~mm-memcontrol-fix-do-not-put-the-css-reference +++ a/mm/memcontrol.c @@ -2772,8 +2772,10 @@ static void memcg_schedule_kmem_cache_cr return; cw = kmalloc(sizeof(*cw), GFP_NOWAIT | __GFP_NOWARN); - if (!cw) + if (!cw) { + css_put(&memcg->css); return; + } cw->memcg = memcg; cw->cachep = cachep;