Fix missing NULL pointer checks causing boot failure on 1meg machines.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2012-02-15 20:13:05 -05:00
parent 97e902dbfd
commit 982c6f9bac
1 changed files with 2 additions and 1 deletions

View File

@ -214,7 +214,8 @@ malloc_fixupreloc(void)
int i;
for (i=0; i<ARRAY_SIZE(Zones); i++) {
struct zone_s *zone = Zones[i];
zone->info->pprev = &zone->info;
if (zone->info)
zone->info->pprev = &zone->info;
}
// Add space free'd during relocation in f-segment to ZoneFSeg