]> xenbits.xensource.com Git - seabios.git/commitdiff
Fix missing NULL pointer checks causing boot failure on 1meg machines.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 16 Feb 2012 01:13:05 +0000 (20:13 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 5 Mar 2012 23:39:31 +0000 (18:39 -0500)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/pmm.c

index 82a0b1d0dc4fb61ff58605fe5683d904cb5323d0..c649fd838ffc8fc77fc90a593023adcda1502940 100644 (file)
--- a/src/pmm.c
+++ b/src/pmm.c
@@ -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