]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: keembay - Fix dma_unmap_sg() nents value
authorThomas Fourier <fourier.thomas@gmail.com>
Mon, 30 Jun 2025 08:57:06 +0000 (10:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:05:04 +0000 (12:05 +0200)
commit01a43615904c21b529a68d8f00c73f6e748be403
tree3ff21fa39d5d75c1a2e423fe2e67460678574510
parentd09c32b59d4a845332339d16617ecc3d7bd69f24
crypto: keembay - Fix dma_unmap_sg() nents value

[ Upstream commit 01951a7dc5ac1a37e5fb7d86ea7eb2dfbf96e8b6 ]

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: 472b04444cd3 ("crypto: keembay - Add Keem Bay OCS HCU driver")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/keembay/keembay-ocs-hcu-core.c