smbios: clear smbios_type4_count before building tables
authorIgor Mammedov <imammedo@redhat.com>
Thu, 14 Mar 2024 15:22:55 +0000 (16:22 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 18 Mar 2024 12:42:46 +0000 (08:42 -0400)
commit6735a4943e024715cf256625f02231e88f76c40b
treebf614e0fc87377daa031b7f568768072df087d96
parent69ea07a56ef54050a61b91fe8236fef4908fe5d1
smbios: clear smbios_type4_count before building tables

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>
Message-Id: <20240314152302.2324164-15-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/smbios/smbios.c