[SeaBIOS] [PATCH] smbios: Default all values to zero.
Kevin O'Connor
kevin at koconnor.net
Tue Mar 11 16:49:29 CET 2014
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 at koconnor.net>
---
src/fw/smbios.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/fw/smbios.c b/src/fw/smbios.c
index 55c662a..0c6a5b2 100644
--- a/src/fw/smbios.c
+++ b/src/fw/smbios.c
@@ -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;
--
1.8.5.3
More information about the SeaBIOS
mailing list