Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: ixp4xx - Fix the size used in a 'dma_free_coherent()' call

Update the size used in 'dma_free_coherent()' in order to match the one
used in the corresponding 'dma_alloc_coherent()', in 'setup_crypt_desc()'.

Fixes: 81bef0150074 ("crypto: ixp4xx - Hardware crypto support for IXP4xx CPUs")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Christophe JAILLET and committed by
Herbert Xu
f7ade9aa 8cbde6c6

+1 -1
+1 -1
drivers/crypto/ixp4xx_crypto.c
··· 528 528 529 529 if (crypt_virt) { 530 530 dma_free_coherent(dev, 531 - NPE_QLEN_TOTAL * sizeof( struct crypt_ctl), 531 + NPE_QLEN * sizeof(struct crypt_ctl), 532 532 crypt_virt, crypt_phys); 533 533 } 534 534 }