[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/8] libqos/ahci: Zero-fill AHCI headers
From: |
John Snow |
Subject: |
[Qemu-devel] [PATCH 1/8] libqos/ahci: Zero-fill AHCI headers |
Date: |
Thu, 19 Feb 2015 17:29:56 -0500 |
Even though it's just the reserved space, make sure they're zeroes.
Signed-off-by: John Snow <address@hidden>
---
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 170ec5a..6f6652c 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
- [Qemu-devel] [PATCH 0/8] ahci: add more IO tests, John Snow, 2015/02/19
- [Qemu-devel] [PATCH 2/8] qtest/ahci: Add a macro bootup routine, John Snow, 2015/02/19
- [Qemu-devel] [PATCH 3/8] libqos/ahci: add ahci command helpers, John Snow, 2015/02/19
- [Qemu-devel] [PATCH 7/8] qtest/ahci: add qcow2 support to ahci-test, John Snow, 2015/02/19
- [Qemu-devel] [PATCH 8/8] qtest/ahci: test different disk sectors, John Snow, 2015/02/19
- [Qemu-devel] [PATCH 6/8] qtest/ahci: add fragmented dma test, John Snow, 2015/02/19
- [Qemu-devel] [PATCH 5/8] qtest/ahci: Add PIO and LBA48 tests, John Snow, 2015/02/19
- [Qemu-devel] [PATCH 4/8] qtest/ahci: Add DMA test variants, John Snow, 2015/02/19
- [Qemu-devel] [PATCH 1/8] libqos/ahci: Zero-fill AHCI headers,
John Snow <=
- Re: [Qemu-devel] [PATCH 0/8] ahci: add more IO tests, John Snow, 2015/02/24
- Re: [Qemu-devel] [PATCH 0/8] ahci: add more IO tests, Stefan Hajnoczi, 2015/02/25