From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQl2b-000694-CZ for qemu-devel@nongnu.org; Wed, 25 Feb 2015 18:06:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQl2V-0002Jk-BX for qemu-devel@nongnu.org; Wed, 25 Feb 2015 18:06:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQl2V-0002JS-4B for qemu-devel@nongnu.org; Wed, 25 Feb 2015 18:06:47 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1PN6j5U025580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 25 Feb 2015 18:06:45 -0500 From: John Snow Date: Wed, 25 Feb 2015 18:06:35 -0500 Message-Id: <1424905602-24715-2-git-send-email-jsnow@redhat.com> In-Reply-To: <1424905602-24715-1-git-send-email-jsnow@redhat.com> References: <1424905602-24715-1-git-send-email-jsnow@redhat.com> Subject: [Qemu-devel] [PATCH v2 1/8] libqos/ahci: Zero-fill AHCI headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, John Snow , armbru@redhat.com, stefanha@redhat.com Even though it's just the reserved space, make sure they're zeroes. Signed-off-by: John Snow --- 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 a6105c7..9dc505c 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); -- 1.9.3