Files
linux-stable-mirror/drivers/crypto
Felix GuandGreg Kroah-Hartman 28141f95ae crypto: cavium/cpt - fix DMA cleanup using wrong loop index
[ Upstream commit 9dbf173bd3 ]

The sg_cleanup error path used list[i] instead of list[j] when unmapping
DMA buffers, leaking successfully mapped entries and repeatedly unmapping
the failed one.

Fixes: c694b23329 ("crypto: cavium - Add the Virtual Function driver for CPT")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-07-24 15:54:42 +02:00
..