crypto: caam/qi2 - fix zero-length buffer DMA mapping
authorHoria Geantă <horia.geanta@nxp.com>
Thu, 25 Apr 2019 14:52:21 +0000 (17:52 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 May 2019 06:03:29 +0000 (14:03 +0800)
commit07586d3ddf284dd7a1a6579579d8efa7296fe60f
tree2db4041317beab512de72b2246984e74b7199548
parent5f49f18d27cd6d49c52f2805cd79c2362710a2e9
crypto: caam/qi2 - fix zero-length buffer DMA mapping

Commit 04e6d25c5bb2 ("crypto: caam - fix zero-length buffer DMA mapping")
fixed an issue in caam/jr driver where ahash implementation was
DMA mapping a zero-length buffer.

Current commit applies 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