aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 5c2c702af617..6bded84c20c8 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -399,7 +399,7 @@ int task_in_mem_cgroup(struct task_struct *task, const struct mem_cgroup *mem)
399 int ret; 399 int ret;
400 400
401 task_lock(task); 401 task_lock(task);
402 ret = task->mm && mm_cgroup(task->mm) == mem; 402 ret = task->mm && vm_match_cgroup(task->mm, mem);
403 task_unlock(task); 403 task_unlock(task);
404 return ret; 404 return ret;
405} 405}