mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 14:14:01 +08:00
ASoC: Intel: Add GFP_KERNEL flag to firmware DMA buffer.
Add GFP_KERNEL when allocating firmware DMA buffer. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
ddfa40b158
commit
2280e90efa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user