summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/marvell
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2016-02-05 17:45:48 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2016-02-06 15:23:56 +0800
commit8a3978ad55fb4c0564d285fb2f6cdee2313fce01 (patch)
tree5f6c3a2de466fef7796f4d67aa36b40d2277922f /drivers/crypto/marvell
parentc033042aa8f69894df37dabcaa0231594834a4e4 (diff)
downloadlinux-8a3978ad55fb4c0564d285fb2f6cdee2313fce01.tar.gz
linux-8a3978ad55fb4c0564d285fb2f6cdee2313fce01.tar.bz2
linux-8a3978ad55fb4c0564d285fb2f6cdee2313fce01.zip
crypto: marvell/cesa - fix test in mv_cesa_dev_dma_init()
We are checking twice if dma->cache_pool is not NULL but are never testing dma->padding_pool value. Cc: stable@vger.kernel.org Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell')
-rw-r--r--drivers/crypto/marvell/cesa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c
index 0643e3366e33..c0656e7f37b5 100644
--- a/drivers/crypto/marvell/cesa.c
+++ b/drivers/crypto/marvell/cesa.c
@@ -306,7 +306,7 @@ static int mv_cesa_dev_dma_init(struct mv_cesa_dev *cesa)
return -ENOMEM;
dma->padding_pool = dmam_pool_create("cesa_padding", dev, 72, 1, 0);
- if (!dma->cache_pool)
+ if (!dma->padding_pool)
return -ENOMEM;
cesa->dma = dma;