]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: rockchip - Fix dma_unmap_sg() nents value
authorThomas Fourier <fourier.thomas@gmail.com>
Sat, 18 Oct 2025 19:37:04 +0000 (15:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:04:30 +0000 (14:04 +0100)
commit19b8fe5f40a06e156cb6d405ba20d9568de83c96
treedadd03c24d71b9e295f30156d3a5ce56e207c38b
parent2e696a06561e4c48ddad74a3fe94012fea947d92
crypto: rockchip - Fix dma_unmap_sg() nents value

[ Upstream commit 21140e5caf019e4a24e1ceabcaaa16bd693b393f ]

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: 57d67c6e8219 ("crypto: rockchip - rework by using crypto_engine")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
[ removed unused rctx variable declaration since device pointer already came from tctx->dev->dev instead of rctx->dev ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/rockchip/rk3288_crypto_ahash.c