]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: rockchip - Fix dma_unmap_sg() nents value
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 3 Sep 2025 08:06:46 +0000 (10:06 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 13 Sep 2025 04:11:05 +0000 (12:11 +0800)
commit21140e5caf019e4a24e1ceabcaaa16bd693b393f
tree147d8a363bfb4d38ffec36c8032be5dc6ea516e1
parent27d5a2d1ad94561994fe6b5ed3a2258039e9ac2b
crypto: rockchip - Fix dma_unmap_sg() nents value

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>
drivers/crypto/rockchip/rk3288_crypto_ahash.c