Skip to contentSkip to conversation

ALSA: sparc: Use GFP_KERNEL for non-atomic allocation

PATCH New Takashi Iwai 1 participant 1 message May 3, 2018 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: sparc: Use GFP_KERNEL for non-atomic allocation

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.

---
 sound/sparc/dbri.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/sparc/dbri.c +1 -1
index abc7bd5055eb..f0e713527e91 100644
@@ -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;
 
Signature · 1 line
2.16.3