From 9b9c2403f9e990397c2757a922a4022cfa0c8155 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 11 Mar 2014 11:46:42 -0400 Subject: [PATCH] smbios: Default all values to zero. 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 --- 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; -- 2.39.5