]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2019 05:38:39 +0000 (07:38 +0200)
commitfd2830991e56f21394416e307e2ef82990245966
tree9882e625c40ff1071f41d93d1b3e84d409555b27
parent0eaed393b4ec4d32fda43a2dbbb32530f7d6f346
crypto: caam/qi2 - fix DMA mapping of stack memory

commit 5965dc745287bebf7a2eba91a66f017537fa4c54 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/caam/caamalg_qi2.c
drivers/crypto/caam/caamalg_qi2.h