aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/memcontrol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 9b4993ee46b3..457d671029b8 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -231,6 +231,9 @@ page_cgroup_zoneinfo(struct page_cgroup *pc)
231 int nid = page_cgroup_nid(pc); 231 int nid = page_cgroup_nid(pc);
232 int zid = page_cgroup_zid(pc); 232 int zid = page_cgroup_zid(pc);
233 233
234 if (!mem)
235 return NULL;
236
234 return mem_cgroup_zoneinfo(mem, nid, zid); 237 return mem_cgroup_zoneinfo(mem, nid, zid);
235} 238}
236 239