From: Romain Perier Date: Mon, 18 Jul 2016 09:32:24 +0000 (+0200) Subject: crypto: marvell - Fix wrong flag used for GFP in mv_cesa_dma_add_iv_op X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa6416ee4676e5c235d4c7315340c24457e39430;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Boris Brezillon Signed-off-by: Herbert Xu --- 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;