]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: aspeed - Fix dma_unmap_sg() direction
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 10 Sep 2025 08:22:31 +0000 (10:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:13 +0000 (16:23 +0200)
commite327b96c8379f1f97c26d9f466fea9731825b5b1
treeb314b95957c6746b422b55b474be149294adb528
parent0a58d3e77b22b087a57831c87cafd360e144a5bd
crypto: aspeed - Fix dma_unmap_sg() direction

commit 838d2d51513e6d2504a678e906823cfd2ecaaa22 upstream.

It seems like everywhere in this file, when the request is not
bidirectionala, req->src is mapped with DMA_TO_DEVICE and req->dst is
mapped with DMA_FROM_DEVICE.

Fixes: 62f58b1637b7 ("crypto: aspeed - add HACE crypto driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/aspeed/aspeed-hace-crypto.c