From: Corey Minyard Date: Mon, 24 Oct 2016 20:10:21 +0000 (-0500) Subject: acpi/ipmi: Initialize the fwinfo before fetching it X-Git-Tag: v2.7.1~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1790a9d77d5d063f720907bec3fdb9b5a5e11d65;p=thirdparty%2Fqemu.git acpi/ipmi: Initialize the fwinfo before fetching it The initialization was missed before, resulting in some bad data in the smbus case. Signed-off-by: Corey Minyard Cc: qemu-stable@nongnu.org Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin (cherry picked from commit 698ae42b9124dce23e03d0fea2e635b70540ef13) Signed-off-by: Michael Roth --- diff --git a/hw/acpi/ipmi.c b/hw/acpi/ipmi.c index 7e74ce44600..651e2e94ea9 100644 --- a/hw/acpi/ipmi.c +++ b/hw/acpi/ipmi.c @@ -99,6 +99,7 @@ void build_acpi_ipmi_devices(Aml *scope, BusState *bus) ii = IPMI_INTERFACE(obj); iic = IPMI_INTERFACE_GET_CLASS(obj); + memset(&info, 0, sizeof(info)); iic->get_fwinfo(ii, &info); aml_append(scope, aml_ipmi_device(&info)); }