]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: talitos - don't persistently map req_ctx->hw_context and req_ctx->buf
authorLEROY Christophe <christophe.leroy@c-s.fr>
Mon, 26 Feb 2018 16:40:04 +0000 (17:40 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Mar 2018 14:45:35 +0000 (22:45 +0800)
commit21eb53600979db3530461cf24fe6f01b8549efb2
tree1c696834c36396f02d2dd1b61ff682204a16aa40
parente5d22268292f072f75b1a96b062a28560c3c366f
crypto: talitos - don't persistently map req_ctx->hw_context and req_ctx->buf

Commit a6b81a97d713 ("crypto: talitos - do hw_context DMA mapping
outside the requests") introduced a persistent dma mapping of
req_ctx->hw_context
Commit 761f8c79966a ("crypto: talitos - chain in buffered data for ahash
on SEC1") introduced a persistent dma mapping of req_ctx->buf

As there is no destructor for req_ctx (the request context), the
associated dma handlers where set in ctx (the tfm context). This is
wrong as several hash operations can run with the same ctx.

This patch removes this persistent mapping.

Reported-by: Horia Geanta <horia.geanta@nxp.com>
Cc: <stable@vger.kernel.org>
Fixes: a6b81a97d713 ("crypto: talitos - do hw_context DMA mapping outside the requests")
Fixes: 761f8c79966a ("crypto: talitos - chain in buffered data for ahash on SEC1")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Tested-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c