]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: atmel - Fix dma_unmap_sg() direction
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 3 Sep 2025 08:34:46 +0000 (10:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:13 +0000 (16:23 +0200)
commit668dd220950577759f21b6553272c6bfc4f2f88e
tree2795247ed8057497db42aad20a54d4df77b1edf8
parente327b96c8379f1f97c26d9f466fea9731825b5b1
crypto: atmel - Fix dma_unmap_sg() direction

commit f5d643156ef62216955c119216d2f3815bd51cb1 upstream.

It seems like everywhere in this file, dd->in_sg is mapped with
DMA_TO_DEVICE and dd->out_sg is mapped with DMA_FROM_DEVICE.

Fixes: 13802005d8f2 ("crypto: atmel - add Atmel DES/TDES 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/atmel-tdes.c