aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/ioat/dma.c')
-rw-r--r--drivers/dma/ioat/dma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c
index 5c06117ac682..b0517c86c1bb 100644
--- a/drivers/dma/ioat/dma.c
+++ b/drivers/dma/ioat/dma.c
@@ -600,8 +600,7 @@ static void __cleanup(struct ioat_dma_chan *ioat, unsigned long phys_complete)
600 */ 600 */
601 dump_desc_dbg(ioat, desc); 601 dump_desc_dbg(ioat, desc);
602 if (tx->cookie) { 602 if (tx->cookie) {
603 chan->common.completed_cookie = tx->cookie; 603 dma_cookie_complete(tx);
604 tx->cookie = 0;
605 ioat_dma_unmap(chan, tx->flags, desc->len, desc->hw); 604 ioat_dma_unmap(chan, tx->flags, desc->len, desc->hw);
606 ioat->active -= desc->hw->tx_cnt; 605 ioat->active -= desc->hw->tx_cnt;
607 if (tx->callback) { 606 if (tx->callback) {