Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64068853 authored by Lucas Stach's avatar Lucas Stach Committed by Vinod Koul
Browse files

dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations



DMA buffer descriptors aren't allocated from atomic context, so they
can use the less heavyweigth GFP_NOWAIT.

Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarRobin Gong <yibin.gong@nxp.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent b8603d2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1214,7 +1214,7 @@ static int sdma_alloc_bd(struct sdma_desc *desc)
	int ret = 0;

	desc->bd = dma_zalloc_coherent(NULL, bd_size, &desc->bd_phys,
					GFP_ATOMIC);
					GFP_NOWAIT);
	if (!desc->bd) {
		ret = -ENOMEM;
		goto out;