]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: cavium - fix dma_free_coherent() size
authorThomas Fourier <fourier.thomas@gmail.com>
Thu, 18 Dec 2025 09:56:45 +0000 (10:56 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 16 Jan 2026 06:02:06 +0000 (14:02 +0800)
commit941676c30ba5b40a01bed92448f457ce62fd1f07
treed0c2d0a1642aba6a23d8d5c45bbc8d609952fae0
parentc904e459cf73bd379500637b4090a2939d69a85f
crypto: cavium - fix dma_free_coherent() size

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

Fixes: c694b233295b ("crypto: cavium - 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/cavium/cpt/cptvf_main.c