diff options
author | Romain Perier <romain.perier@free-electrons.com> | 2016-07-22 15:46:24 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-28 07:04:44 +0200 |
commit | 64ec6ccb76e6ef13c40ad68e125545f8807a26c8 (patch) | |
tree | f1acc580bc588d0b1eec16a7b486913dce30ceb7 /lib/mpi/mpicoder.c | |
parent | crypto: marvell - Don't chain at DMA level when backlog is disabled (diff) | |
download | linux-64ec6ccb76e6ef13c40ad68e125545f8807a26c8.tar.xz linux-64ec6ccb76e6ef13c40ad68e125545f8807a26c8.zip |
crypto: marvell - Update cache with input sg only when it is unmapped
So far, the cache of the ahash requests was updated from the 'complete'
operation. This complete operation is called from mv_cesa_tdma_process
before the cleanup operation, which means that the content of req->src
can be read and copied when it is still mapped. This commit fixes the
issue by moving this cache update from mv_cesa_ahash_complete to
mv_cesa_ahash_req_cleanup, so the copy is done once the sglist is
unmapped.
Fixes: 1bf6682cb31d ("crypto: marvell - Add a complete operation for..")
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions