From: John Snow Date: Wed, 25 Feb 2015 23:06:35 +0000 (-0500) Subject: libqos/ahci: Zero-fill AHCI headers X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4a42f6d408079830099dbffc1b0cb2869db69215;p=qemu.git libqos/ahci: Zero-fill AHCI headers Even though it's just the reserved space, make sure they're zeroes. Signed-off-by: John Snow Message-id: 1424905602-24715-2-git-send-email-jsnow@redhat.com Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- diff --git a/tests/libqos/ahci.c b/tests/libqos/ahci.c index a6105c750f..9dc505ce0a 100644 --- a/tests/libqos/ahci.c +++ b/tests/libqos/ahci.c @@ -487,7 +487,7 @@ void ahci_get_command_header(AHCIQState *ahci, uint8_t port, void ahci_set_command_header(AHCIQState *ahci, uint8_t port, uint8_t slot, AHCICommandHeader *cmd) { - AHCICommandHeader tmp; + AHCICommandHeader tmp = { .flags = 0 }; uint64_t ba = ahci->port[port].clb; ba += slot * sizeof(AHCICommandHeader);