aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/async_tx/async_memset.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/async_tx/async_memset.c')
-rw-r--r--crypto/async_tx/async_memset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/async_tx/async_memset.c b/crypto/async_tx/async_memset.c
index 0c94851cfd37..8e98ab0cd37c 100644
--- a/crypto/async_tx/async_memset.c
+++ b/crypto/async_tx/async_memset.c
@@ -52,12 +52,13 @@ async_memset(struct page *dest, int val, unsigned int offset,
52 52
53 if (device) { 53 if (device) {
54 dma_addr_t dma_dest; 54 dma_addr_t dma_dest;
55 unsigned long dma_prep_flags = cb_fn ? DMA_PREP_INTERRUPT : 0;
55 56
56 dma_dest = dma_map_page(device->dev, dest, offset, len, 57 dma_dest = dma_map_page(device->dev, dest, offset, len,
57 DMA_FROM_DEVICE); 58 DMA_FROM_DEVICE);
58 59
59 tx = device->device_prep_dma_memset(chan, dma_dest, val, len, 60 tx = device->device_prep_dma_memset(chan, dma_dest, val, len,
60 cb_fn != NULL); 61 dma_prep_flags);
61 } 62 }
62 63
63 if (tx) { 64 if (tx) {