Message ID | 20200627033349.GJZiEpfqJ%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | [merged] mm-memcontrol-fix-do-not-put-the-css-reference.patch removed from -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;