From: Liam Girdwood Date: Tue, 18 Feb 2014 10:41:50 +0000 (+0000) Subject: ASoC: Intel: Add GFP_KERNEL flag to firmware DMA buffer. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2280e90efae92060f6fa717fb1afa9861bd2b520;p=linux-beck.git ASoC: Intel: Add GFP_KERNEL flag to firmware DMA buffer. Add GFP_KERNEL when allocating firmware DMA buffer. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c index b6f9b5ecb66a..31cd15430e9a 100644 --- a/sound/soc/intel/sst-firmware.c +++ b/sound/soc/intel/sst-firmware.c @@ -65,7 +65,7 @@ struct sst_fw *sst_fw_new(struct sst_dsp *dsp, /* allocate DMA buffer to store FW data */ sst_fw->dma_buf = dma_alloc_coherent(dsp->dev, sst_fw->size, - &sst_fw->dmable_fw_paddr, GFP_DMA); + &sst_fw->dmable_fw_paddr, GFP_DMA | GFP_KERNEL); if (!sst_fw->dma_buf) { dev_err(dsp->dev, "error: DMA alloc failed\n"); kfree(sst_fw);