>From 4bac0aa296bd2b3b7dc63895c3d7e19e39c5b13c Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Fri, 31 Jul 2015 18:54:21 +0200 Subject: [PATCH] hw/smbios: fix "Structure table maximum size" field in the 3.0 entry point This field carries an inclusive upper bound on the size of the blob that collects the tables, and not the size of the largest individual table. Signed-off-by: Laszlo Ersek --- hw/smbios/smbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/smbios/smbios.c b/hw/smbios/smbios.c index 70ecd87..6f58709 100644 --- a/hw/smbios/smbios.c +++ b/hw/smbios/smbios.c @@ -846,7 +846,7 @@ static void smbios_entry_point_setup(void) ep.ep30.smbios_doc_rev = 0; /* set during table construct, but BIOS might override */ - ep.ep30.structure_table_max_size = cpu_to_le32(smbios_table_max); + ep.ep30.structure_table_max_size = cpu_to_le32(smbios_tables_len); /* BIOS must recalculate */ ep.ep30.checksum = 0; -- 1.8.3.1