OSDN Git Service

crypto: caam/qi2 - fix DMA mapping of stack memory
authorHoria Geantă <horia.geanta@nxp.com>
Thu, 25 Apr 2019 14:52:22 +0000 (17:52 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 May 2019 06:03:29 +0000 (14:03 +0800)
commit5965dc745287bebf7a2eba91a66f017537fa4c54
treea1b9b5c9f7507f5118470113106d2a25254f87d6
parent07586d3ddf284dd7a1a6579579d8efa7296fe60f
crypto: caam/qi2 - fix DMA mapping of stack memory

Commits c19650d6ea99 ("crypto: caam - fix DMA mapping of stack memory")
and 65055e210884 ("crypto: caam - fix hash context DMA unmap size")
fixed the ahash implementation in caam/jr driver such that req->result
is not DMA-mapped (since it's not guaranteed to be DMA-able).

Apply a similar fix for ahash implementation in caam/qi2 driver.

Cc: <stable@vger.kernel.org> # v4.20+
Fixes: 3f16f6c9d632 ("crypto: caam/qi2 - add support for ahash algorithms")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi2.c
drivers/crypto/caam/caamalg_qi2.h