linux/drivers/crypto/inside-secure
Thomas Fourier d94de7bade crypto: inside-secure - Fix dma_unmap_sg() nents value
[ Upstream commit cb7fa6b6fc ]

The `dma_unmap_sg()` functions should be called with the same nents as the
`dma_map_sg()`, not the value the map function returned.

Fixes: c957f8b3e2 ("crypto: inside-secure - avoid unmapping DMA memory that was not mapped")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Reviewed-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:05:02 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
safexcel.c crypto: safexcel - Cleanup ring IRQ workqueues on load failure 2023-05-11 23:03:02 +09:00
safexcel.h crypto: inside-secure - fix packed bit-field result descriptor 2022-07-08 15:21:17 +08:00
safexcel_cipher.c crypto: safexcel - Add error handling for dma_map_sg() calls 2024-01-25 15:27:21 -08:00
safexcel_hash.c crypto: inside-secure - Fix dma_unmap_sg() nents value 2025-08-15 12:05:02 +02:00
safexcel_ring.c crypto: inside-secure - Prevent missing of processing errors 2020-09-18 17:20:10 +10:00