39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From c0282a842a912aacac28a6ae229de5854c3fb5df Mon Sep 17 00:00:00 2001
|
|
From: Igor Mammedov <imammedo@redhat.com>
|
|
Date: Mon, 26 Feb 2024 13:20:22 +0100
|
|
Subject: [PATCH 16/20] smbios: clear smbios_type4_count before building tables
|
|
|
|
RH-Author: Igor Mammedov <imammedo@redhat.com>
|
|
RH-MergeRequest: 230: Workaround Windows failing to find 64bit SMBIOS entry point with SeaBIOS
|
|
RH-Jira: RHEL-21705
|
|
RH-Acked-by: MST <mst@redhat.com>
|
|
RH-Acked-by: Ani Sinha <None>
|
|
RH-Commit: [14/18] f809595d2934ae975c0b7d17a4a79645e062ba42
|
|
|
|
JIRA: https://issues.redhat.com/browse/RHEL-21705
|
|
|
|
it will help to keep type 4 tables accounting correct in case
|
|
SMBIOS tables are built multiple times.
|
|
|
|
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
|
|
Tested-by: Fiona Ebner <f.ebner@proxmox.com>
|
|
---
|
|
hw/smbios/smbios.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/hw/smbios/smbios.c b/hw/smbios/smbios.c
|
|
index 7e32430b85..4521ea386c 100644
|
|
--- a/hw/smbios/smbios.c
|
|
+++ b/hw/smbios/smbios.c
|
|
@@ -1111,6 +1111,7 @@ void smbios_get_tables(MachineState *ms,
|
|
ep_type == SMBIOS_ENTRY_POINT_TYPE_64);
|
|
|
|
g_free(smbios_tables);
|
|
+ smbios_type4_count = 0;
|
|
smbios_tables = g_memdup2(usr_blobs, usr_blobs_len);
|
|
smbios_tables_len = usr_blobs_len;
|
|
smbios_table_max = usr_table_max;
|
|
--
|
|
2.39.3
|
|
|