]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: octeontx - fix dma_free_coherent() size
authorThomas Fourier <fourier.thomas@gmail.com>
Thu, 18 Dec 2025 10:12:57 +0000 (11:12 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2026 06:02:06 +0000 (14:02 +0800)
commit624a6760bf8464965c17c8df10b40b557eaa3002
treeb7aab885b9366dcaed6d64171b2f24b513a488ef
parent941676c30ba5b40a01bed92448f457ce62fd1f07
crypto: octeontx - fix dma_free_coherent() size

The size of the buffer in alloc_command_queues() is
curr->size + OTX_CPT_NEXT_CHUNK_PTR_SIZE, so used that length for
dma_free_coherent().

Fixes: 10b4f09491bf ("crypto: marvell - add the Virtual Function driver for CPT")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx/otx_cptvf_main.c