diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-05-03 10:51:41 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-05-03 10:53:39 +0200 |
commit | 207459a2804a64d0f0f05c8aba04e0b0844661f2 (patch) | |
tree | b93e76fee6827a7544f44976b6e2af7aa2509fbe /sound | |
parent | 6455abb43374346f10b4842a9bc9b7f4d10fa038 (diff) |
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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/sparc/dbri.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |