crypto: caam - fix hash context DMA unmap size
authorFranck LENORMAND <franck.lenormand@nxp.com>
Tue, 19 Feb 2019 14:56:55 +0000 (16:56 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Feb 2019 06:17:58 +0000 (14:17 +0800)
commit65055e2108847af5e577cc7ce6bde45ea136d29a
tree3561bd9835c3dc82fd052d69ae21476fad711ead
parent984798de671a927ac73da31096a150df42e6aaf3
crypto: caam - fix hash context DMA unmap size

When driver started using state->caam_ctxt for storing both running hash
and final hash, it was not updated to handle different DMA unmap
lengths.

Cc: <stable@vger.kernel.org> # v4.19+
Fixes: c19650d6ea99 ("crypto: caam - fix DMA mapping of stack memory")
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c