aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/memcontrol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index f4f41c36e703..60d28e36f0e0 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -6196,6 +6196,8 @@ mem_cgroup_css_online(struct cgroup *cont)
6196 * call __mem_cgroup_free, so return directly 6196 * call __mem_cgroup_free, so return directly
6197 */ 6197 */
6198 mem_cgroup_put(memcg); 6198 mem_cgroup_put(memcg);
6199 if (parent->use_hierarchy)
6200 mem_cgroup_put(parent);
6199 } 6201 }
6200 return error; 6202 return error;
6201} 6203}