crypto: sahara - Fix dma unmap direction
authorMogens Lauridsen <mlauridsen171@gmail.com>
Thu, 3 Aug 2017 13:34:12 +0000 (15:34 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 17 Aug 2017 08:53:26 +0000 (16:53 +0800)
commit1e3204104cf7f608e90bc824523aaa8129ea944a
tree34c83a4b7cc4d70b527482ff503286cd67bfe726
parent2d97591ef43d0587be22ad1b0d758d6df4999a0b
crypto: sahara - Fix dma unmap direction

The direction used in dma_unmap_sg in aes calc is wrong.
This result in the cache not being invalidated correct when aes
calculation is done and result has been dma'ed to memory.
This is seen as sporadic wrong result from aes calc.

Signed-off-by: Mogens Lauridsen <mlauridsen171@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sahara.c