crypto: caam/qi2 - generate hash keys in-place
authorHoria Geantă <horia.geanta@nxp.com>
Thu, 25 Apr 2019 14:52:23 +0000 (17:52 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 May 2019 06:03:30 +0000 (14:03 +0800)
commit418cd20e4dcdca97e6f6d59e6336228dacf2e45d
tree81edd225db2fb3475aaec323c6c9889f120b131f
parent5965dc745287bebf7a2eba91a66f017537fa4c54
crypto: caam/qi2 - generate hash keys in-place

Commit 307244452d3d ("crypto: caam - generate hash keys in-place")
fixed ahash implementation in caam/jr driver such that user-provided key
buffer is not DMA mapped, since it's not guaranteed to be DMAable.

Apply a similar fix for 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