linux/drivers/crypto/inside-secure
Thomas Fourier c88a902cc5 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:13:53 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
safexcel.c crypto: safexcel - Remove cfb and ofb 2023-12-08 11:59:46 +08:00
safexcel.h crypto: safexcel - Remove unused declaration safexcel_ring_first_rptr() 2024-08-30 18:22:30 +08:00
safexcel_cipher.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
safexcel_hash.c crypto: inside-secure - Fix dma_unmap_sg() nents value 2025-08-15 12:13:53 +02:00
safexcel_ring.c crypto: inside-secure - Prevent missing of processing errors 2020-09-18 17:20:10 +10:00