diff options
-rw-r--r-- | drivers/dma/dmatest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index 5589358b684d..7e1b0aa0ca50 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/dma/dmatest.c | |||
@@ -285,7 +285,12 @@ static int dmatest_func(void *data) | |||
285 | 285 | ||
286 | set_user_nice(current, 10); | 286 | set_user_nice(current, 10); |
287 | 287 | ||
288 | flags = DMA_CTRL_ACK | DMA_COMPL_SKIP_DEST_UNMAP | DMA_PREP_INTERRUPT; | 288 | /* |
289 | * src buffers are freed by the DMAEngine code with dma_unmap_single() | ||
290 | * dst buffers are freed by ourselves below | ||
291 | */ | ||
292 | flags = DMA_CTRL_ACK | DMA_PREP_INTERRUPT | ||
293 | | DMA_COMPL_SKIP_DEST_UNMAP | DMA_COMPL_SRC_UNMAP_SINGLE; | ||
289 | 294 | ||
290 | while (!kthread_should_stop() | 295 | while (!kthread_should_stop() |
291 | && !(iterations && total_tests >= iterations)) { | 296 | && !(iterations && total_tests >= iterations)) { |