From 4a42f6d408079830099dbffc1b0cb2869db69215 Mon Sep 17 00:00:00 2001 From: John Snow Date: Wed, 25 Feb 2015 18:06:35 -0500 Subject: [PATCH] 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 --- tests/libqos/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0