]> 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:08:55 +0000 (12:08 +0200)
commit06bc14f9d047cd2ceae666cbefa4c3a0af8b101c
tree085961f20332f268ddcc691e7016daf90b4f6624
parent5d481d4bea06d8fc01299d068e7e4a69883cf06e
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/intel/keembay/keembay-ocs-hcu-core.c