Skip to content

Commit 93c2aac

Browse files
granquetSasha Levin
authored andcommitted
dmaengine: mediatek: use GFP_NOWAIT instead of GFP_ATOMIC in prep_dma
[ Upstream commit 9041575 ] As recommended by the doc in: Documentation/drivers-api/dmaengine/provider.rst Use GFP_NOWAIT to not deplete the emergency pool. Signed-off-by: Guillaume Ranquet <granquet@baylibre.com> Link: https://lore.kernel.org/r/20210513192642.29446-4-granquet@baylibre.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0f48f92 commit 93c2aac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/dma/mediatek/mtk-uart-apdma.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static struct dma_async_tx_descriptor *mtk_uart_apdma_prep_slave_sg
349349
return NULL;
350350

351351
/* Now allocate and setup the descriptor */
352-
d = kzalloc(sizeof(*d), GFP_ATOMIC);
352+
d = kzalloc(sizeof(*d), GFP_NOWAIT);
353353
if (!d)
354354
return NULL;
355355

0 commit comments

Comments
 (0)