diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-02-15 20:13:05 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-02-15 20:13:05 -0500 |
commit | 890d98519a8768ed1118286e1d0b460887189c24 (patch) | |
tree | 61e65dc6bd9fe7f0084cfb67ceb3a7d03a53ea4c /src/pmm.c | |
parent | 6ee837b6601050cb9217cd4f327d0c7e5a44a763 (diff) | |
download | seabios-890d98519a8768ed1118286e1d0b460887189c24.zip seabios-890d98519a8768ed1118286e1d0b460887189c24.tar.gz seabios-890d98519a8768ed1118286e1d0b460887189c24.tar.bz2 |
Fix missing NULL pointer checks causing boot failure on 1meg machines.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pmm.c')
-rw-r--r-- | src/pmm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |