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

Commit 207459a2 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 6455abb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;