From 814ffc96953c76de883bd2f3c98de949ed415777 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 7 Sep 2012 21:51:17 +0200 Subject: [PATCH] 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. --- sys/dev/raid/hptmv/entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/raid/hptmv/entry.c b/sys/dev/raid/hptmv/entry.c index e998131283..e053a50de9 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); } -- 2.15.1