diff options
author | Romain Perier <romain.perier@free-electrons.com> | 2016-07-18 11:32:24 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-19 09:42:40 +0200 |
commit | aa6416ee4676e5c235d4c7315340c24457e39430 (patch) | |
tree | 38b2f7e23302f1cf7e37725280a8196b96cb6894 /drivers/crypto/marvell | |
parent | crypto: nx - off by one bug in nx_of_update_msc() (diff) | |
download | linux-aa6416ee4676e5c235d4c7315340c24457e39430.tar.xz linux-aa6416ee4676e5c235d4c7315340c24457e39430.zip |
crypto: marvell - Fix wrong flag used for GFP in mv_cesa_dma_add_iv_op
Use the parameter 'gfp_flags' instead of 'flag' as second argument of
dma_pool_alloc(). The parameter 'flag' is for the TDMA descriptor, its
content has no sense for the allocator.
Fixes: bac8e805a30d ("crypto: marvell - Copy IV vectors by DMA...")
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Acked-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/tdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/marvell/tdma.c b/drivers/crypto/marvell/tdma.c index b0f9f5050dc8..86a065bcc187 100644 --- a/drivers/crypto/marvell/tdma.c +++ b/drivers/crypto/marvell/tdma.c @@ -221,7 +221,7 @@ int mv_cesa_dma_add_iv_op(struct mv_cesa_tdma_chain *chain, dma_addr_t src, if (IS_ERR(tdma)) return PTR_ERR(tdma); - iv = dma_pool_alloc(cesa_dev->dma->iv_pool, flags, &dma_handle); + iv = dma_pool_alloc(cesa_dev->dma->iv_pool, gfp_flags, &dma_handle); if (!iv) return -ENOMEM; |