diff options
author | tychon <tychon@FreeBSD.org> | 2014-01-22 01:57:52 +0000 |
---|---|---|
committer | tychon <tychon@FreeBSD.org> | 2014-01-22 01:57:52 +0000 |
commit | da146bbeb13be980f401bc2d6d68febec97c3b36 (patch) | |
tree | 090f383be4f46460eb4801b20312a4b6f72b44d0 /usr.sbin | |
parent | 023274b333110e932a9af22fa2388799616eb0e3 (diff) | |
download | FreeBSD-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.c | 2 |
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); |