summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authortychon <tychon@FreeBSD.org>2014-01-22 01:57:52 +0000
committertychon <tychon@FreeBSD.org>2014-01-22 01:57:52 +0000
commitda146bbeb13be980f401bc2d6d68febec97c3b36 (patch)
tree090f383be4f46460eb4801b20312a4b6f72b44d0 /usr.sbin
parent023274b333110e932a9af22fa2388799616eb0e3 (diff)
downloadFreeBSD-src-da146bbeb13be980f401bc2d6d68febec97c3b36.zip
FreeBSD-src-da146bbeb13be980f401bc2d6d68febec97c3b36.tar.gz
Fix issue with stale fields from a recycled request pulled off the freelist.
Approved by: grehan (co-mentor)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bhyve/pci_ahci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_ahci.c b/usr.sbin/bhyve/pci_ahci.c
index 0109975..72749f1 100644
--- a/usr.sbin/bhyve/pci_ahci.c
+++ b/usr.sbin/bhyve/pci_ahci.c
@@ -497,6 +497,8 @@ ahci_handle_flush(struct ahci_port *p, int slot, uint8_t *cfis)
aior->cfis = cfis;
aior->slot = slot;
aior->len = 0;
+ aior->done = 0;
+ aior->prdtl = 0;
breq = &aior->io_req;
err = blockif_flush(p->bctx, breq);
OpenPOWER on IntegriCloud