Fix issue with stale fields from a recycled request pulled off the freelist.

Approved by:	grehan (co-mentor)
This commit is contained in:
Tycho Nightingale 2014-01-22 01:57:52 +00:00
parent 40eb53f232
commit 4e5f86e009
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261000

View File

@ -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);