diff options
-rw-r--r-- | mm/page_alloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d0432e44f77d..490aee1f2ce8 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1829,6 +1829,9 @@ static int __cpuinit process_zones(int cpu) | |||
1829 | 1829 | ||
1830 | for_each_zone(zone) { | 1830 | for_each_zone(zone) { |
1831 | 1831 | ||
1832 | if (!populated_zone(zone)) | ||
1833 | continue; | ||
1834 | |||
1832 | zone_pcp(zone, cpu) = kmalloc_node(sizeof(struct per_cpu_pageset), | 1835 | zone_pcp(zone, cpu) = kmalloc_node(sizeof(struct per_cpu_pageset), |
1833 | GFP_KERNEL, cpu_to_node(cpu)); | 1836 | GFP_KERNEL, cpu_to_node(cpu)); |
1834 | if (!zone_pcp(zone, cpu)) | 1837 | if (!zone_pcp(zone, cpu)) |