aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 65302a083d2f..cc13797d0fbc 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3086,6 +3086,9 @@ static struct kmem_cache *kmem_cache_dup(struct mem_cgroup *memcg,
3086 new = kmem_cache_create_memcg(memcg, name, s->object_size, s->align, 3086 new = kmem_cache_create_memcg(memcg, name, s->object_size, s->align,
3087 (s->flags & ~SLAB_PANIC), s->ctor); 3087 (s->flags & ~SLAB_PANIC), s->ctor);
3088 3088
3089 if (new)
3090 new->allocflags |= __GFP_KMEMCG;
3091
3089 kfree(name); 3092 kfree(name);
3090 return new; 3093 return new;
3091} 3094}