Skip to content

Commit

Permalink
ALSA: sparc: Use GFP_KERNEL for non-atomic allocation
Browse files Browse the repository at this point in the history
dbri driver allocates a resource with GFP_ATOMIC unnecessarily in its
probe function.  Replace it with the standard GFP_KERNEL for avoiding
the bogus allocation failures.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
tiwai committed May 3, 2018
1 parent 6455abb commit 207459a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/sparc/dbri.c
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ static int snd_dbri_create(struct snd_card *card,
dbri->irq = irq;

dbri->dma = dma_zalloc_coherent(&op->dev, sizeof(struct dbri_dma),
&dbri->dma_dvma, GFP_ATOMIC);
&dbri->dma_dvma, GFP_KERNEL);
if (!dbri->dma)
return -ENOMEM;

Expand Down

0 comments on commit 207459a

Please sign in to comment.