process_zones(): fix recovery code
Don't try to free memory which we didn't allocate. Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
060d11b0b3
commit
6419168813
1 changed files with 2 additions and 0 deletions
|
@ -2345,6 +2345,8 @@ static int __cpuinit process_zones(int cpu)
|
|||
return 0;
|
||||
bad:
|
||||
for_each_zone(dzone) {
|
||||
if (!populated_zone(dzone))
|
||||
continue;
|
||||
if (dzone == zone)
|
||||
break;
|
||||
kfree(zone_pcp(dzone, cpu));
|
||||
|
|
Loading…
Reference in a new issue