Commit 64191688 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

process_zones(): fix recovery code

Don't try to free memory which we didn't allocate.
Acked-by: default avatarChristoph Lameter <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 060d11b0
......@@ -2345,6 +2345,8 @@ static int __cpuinit process_zones(int cpu)
return 0;
for_each_zone(dzone) {
if (!populated_zone(dzone))
if (dzone == zone)
kfree(zone_pcp(dzone, cpu));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment