aboutsummaryrefslogtreecommitdiffstats
path: root/src/fw/smbios.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-03-11 11:46:42 -0400
committerKevin O'Connor <kevin@koconnor.net>2014-03-20 12:35:12 -0400
commit9b9c2403f9e990397c2757a922a4022cfa0c8155 (patch)
tree76b683446d0c69d73c5fae434eb23416717f8728 /src/fw/smbios.c
parent5d598779b0d9b07e21b529e8495d2229245bfd5f (diff)
downloadseabios-9b9c2403f9e990397c2757a922a4022cfa0c8155.tar.gz
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 <kevin@koconnor.net>
Diffstat (limited to 'src/fw/smbios.c')
-rw-r--r--src/fw/smbios.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fw/smbios.c b/src/fw/smbios.c
index 55c662ae..0c6a5b2a 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;