]> Git Repo - qemu.git/commitdiff
acpi/ipmi: Initialize the fwinfo before fetching it
authorCorey Minyard <[email protected]>
Mon, 24 Oct 2016 20:10:21 +0000 (15:10 -0500)
committerMichael S. Tsirkin <[email protected]>
Tue, 1 Nov 2016 17:21:09 +0000 (19:21 +0200)
The initialization was missed before, resulting in some
bad data in the smbus case.

Signed-off-by: Corey Minyard <[email protected]>
Cc: [email protected]
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/acpi/ipmi.c

index 7e74ce446001564afdc3d5d8586f3e6eb1e322e1..651e2e94ea965abd4fdb8bfd51ed3fdef1fb0441 100644 (file)
@@ -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));
     }
This page took 0.037948 seconds and 4 git commands to generate.