]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit468889fbf1b4d985e02c33e4ea5643a89497d682
tree34c83a4b7cc4d70b527482ff503286cd67bfe726
parent1b9f4079bf457e290d77d46875414a758d1fea68
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