From: Sascha Wildner Date: Fri, 7 Sep 2012 19:51:17 +0000 (+0200) Subject: kernel/hptmv: Fix the completion of a write. X-Git-Tag: v3.2.0~196 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/814ffc96953c76de883bd2f3c98de949ed415777 kernel/hptmv: Fix the completion of a write. What is intended here is to perform BUS_DMASYNC_POSTWRITE when a write is completed, but the 'else if' had the wrong check. --- diff --git a/sys/dev/raid/hptmv/entry.c b/sys/dev/raid/hptmv/entry.c index e998131..e053a50 100644 --- a/sys/dev/raid/hptmv/entry.c +++ b/sys/dev/raid/hptmv/entry.c @@ -2934,7 +2934,7 @@ fOsCommandDone(_VBUS_ARG PCommand pCmd) if (pCmd->cf_data_in) { bus_dmamap_sync(pAdapter->io_dma_parent, pmap->dma_map, BUS_DMASYNC_POSTREAD); } - else if (pCmd->cf_data_in) { + else if (pCmd->cf_data_out) { bus_dmamap_sync(pAdapter->io_dma_parent, pmap->dma_map, BUS_DMASYNC_POSTWRITE); }