3 May
2018
3 May
'18
10:53 a.m.
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 --- sound/sparc/dbri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c index abc7bd5055eb..f0e713527e91 100644 --- a/sound/sparc/dbri.c +++ b/sound/sparc/dbri.c @@ -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;
--
2.16.3