summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Minyard2016-10-24 22:10:21 +0200
committerMichael S. Tsirkin2016-11-01 18:21:09 +0100
commit698ae42b9124dce23e03d0fea2e635b70540ef13 (patch)
tree0739b0fbe2d3f668430afd83398c5531292dc4dd
parentipmi: Add graceful shutdown handling to the external BMC (diff)
downloadqemu-698ae42b9124dce23e03d0fea2e635b70540ef13.tar.gz
qemu-698ae42b9124dce23e03d0fea2e635b70540ef13.tar.xz
qemu-698ae42b9124dce23e03d0fea2e635b70540ef13.zip
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 <cminyard@mvista.com> Cc: qemu-stable@nongnu.org Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--hw/acpi/ipmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/acpi/ipmi.c b/hw/acpi/ipmi.c
index 7e74ce4460..651e2e94ea 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));
}