Message ID | 1392720110-4278-2-git-send-email-liam.r.girdwood@linux.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 2280e90efae92060f6fa717fb1afa9861bd2b520 |
Headers | show |
On Tue, Feb 18, 2014 at 10:41:50AM +0000, Liam Girdwood wrote:
> Add GFP_KERNEL when allocating firmware DMA buffer.
Applied, thanks.
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c index b6f9b5e..31cd154 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);
Add GFP_KERNEL when allocating firmware DMA buffer. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> --- sound/soc/intel/sst-firmware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)