aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 3b5358a0561f..8a52ba9fe693 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1845,8 +1845,10 @@ static inline void free_zone_pagesets(int cpu)
1845 for_each_zone(zone) { 1845 for_each_zone(zone) {
1846 struct per_cpu_pageset *pset = zone_pcp(zone, cpu); 1846 struct per_cpu_pageset *pset = zone_pcp(zone, cpu);
1847 1847
1848 /* Free per_cpu_pageset if it is slab allocated */
1849 if (pset != &boot_pageset[cpu])
1850 kfree(pset);
1848 zone_pcp(zone, cpu) = NULL; 1851 zone_pcp(zone, cpu) = NULL;
1849 kfree(pset);
1850 } 1852 }
1851} 1853}
1852 1854