Skip to content

Commit

Permalink
crypto: marvell - Fix wrong flag used for GFP in mv_cesa_dma_add_iv_op
Browse files Browse the repository at this point in the history
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: bac8e80 ("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>
  • Loading branch information
Romain Perier authored and Herbert Xu committed Jul 19, 2016
1 parent e514cc0 commit aa6416e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/marvell/tdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit aa6416e

Please sign in to comment.