summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-08-02 16:56:48 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2020-08-21 14:45:27 +1000
commitf7ade9aaf66bd5599690acf0597df2c0f6cd825a (patch)
treedcc474a55b03b1df365dffbb237ec6fdf621f8a2
parent8cbde6c6a6d2b1599ff90f932304aab7e32fce89 (diff)
downloadlinux-f7ade9aaf66bd5599690acf0597df2c0f6cd825a.tar.gz
linux-f7ade9aaf66bd5599690acf0597df2c0f6cd825a.tar.bz2
linux-f7ade9aaf66bd5599690acf0597df2c0f6cd825a.zip
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>
-rw-r--r--drivers/crypto/ixp4xx_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c
index f478bb0a566a..276012e7c482 100644
--- a/drivers/crypto/ixp4xx_crypto.c
+++ b/drivers/crypto/ixp4xx_crypto.c
@@ -528,7 +528,7 @@ static void release_ixp_crypto(struct device *dev)
if (crypt_virt) {
dma_free_coherent(dev,
- NPE_QLEN_TOTAL * sizeof( struct crypt_ctl),
+ NPE_QLEN * sizeof(struct crypt_ctl),
crypt_virt, crypt_phys);
}
}