]> xenbits.xensource.com Git - seabios.git/commitdiff
smbios: Default all values to zero.
authorKevin O'Connor <kevin@koconnor.net>
Tue, 11 Mar 2014 15:46:42 +0000 (11:46 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 20 Mar 2014 16:35:12 +0000 (12:35 -0400)
Make sure to initialize the entire smbios area to zero so that any
field not explicitly initialized does not have random values.  (It was
found that the memory_error_information_handle field in smbios_type_17
was not being set.)

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/fw/smbios.c

index 55c662ae828194a92f88e1328a37df205b7edd95..0c6a5b2ab8c54f3644074119ea74ab19b572137a 100644 (file)
@@ -522,6 +522,7 @@ smbios_setup(void)
         warn_noalloc();
         return;
     }
+    memset(start, 0, TEMPSMBIOSSIZE);
 
     u32 nr_structs = 0, max_struct_size = 0;
     char *q, *p = start;