]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: marvell/octeontx - fix DMA cleanup using wrong loop index
authorFelix Gu <ustc.gu@gmail.com>
Tue, 2 Jun 2026 14:38:26 +0000 (22:38 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Jun 2026 01:56:45 +0000 (09:56 +0800)
commit7891c64c0520519782470ba29bac8a5761e295d8
tree5877cf4064507bf7602ebe377b9bd567c04bc804
parent51f449308506269ec31a886c83da93f7a7a4d780
crypto: marvell/octeontx - fix DMA cleanup using wrong loop index

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

Fixes: 10b4f09491bf ("crypto: marvell - 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>
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c