Skip to content

Commit

Permalink
dmaengine: xilinx_dma: Alloc tx descriptors GFP_NOWAIT
Browse files Browse the repository at this point in the history
Use GFP_NOWAIT allocation in xilinx_dma_alloc_tx_descriptor().

This is necessary for compatibility with ALSA, which calls
dmaengine_prep_dma_cyclic() from an atomic context.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210129170800.31857-1-rf@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Richard Fitzgerald authored and Vinod Koul committed Feb 1, 2021
1 parent f80f7c9 commit ba61c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/xilinx/xilinx_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ xilinx_dma_alloc_tx_descriptor(struct xilinx_dma_chan *chan)
{
struct xilinx_dma_tx_descriptor *desc;

desc = kzalloc(sizeof(*desc), GFP_KERNEL);
desc = kzalloc(sizeof(*desc), GFP_NOWAIT);
if (!desc)
return NULL;

Expand Down

0 comments on commit ba61c36

Please sign in to comment.