diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2017-01-15 13:37:50 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-01-23 22:50:23 +0800 |
commit | 3bfb2e6b32443841ff90460a78bdefb19f8d61e8 (patch) | |
tree | fe1553400dfe305c2f4199495c83b14983b40a16 /crypto/tcrypt.c | |
parent | 87170961f31294dd213e0427bc7cea3283d91b84 (diff) | |
download | op-kernel-dev-3bfb2e6b32443841ff90460a78bdefb19f8d61e8.zip op-kernel-dev-3bfb2e6b32443841ff90460a78bdefb19f8d61e8.tar.gz |
crypto: img-hash - use dma_data_direction when calling dma_map_sg
The fourth argument of dma_map_sg() and dma_unmap_sg() is an item of
dma_data_direction enum. Function img_hash_xmit_dma() wrongly used
DMA_MEM_TO_DEV, which is an item of dma_transfer_direction enum.
Replace DMA_MEM_TO_DEV (which value is 1) with DMA_TO_DEVICE (which
value is fortunately also 1) when calling dma_map_sg() and
dma_unmap_sg().
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
0 files changed, 0 insertions, 0 deletions