提交 6fdb8bd4 编写于 作者: A Andrew Morton 提交者: Dan Williams

drivers/dma/dmatest.c: switch a GFP_ATOMIC to GFP_KERNEL

It was needlessly using the unreliable GFP_ATOMIC.

Cc: Timur Tabi <timur@freescale.com>
Acked-by: NHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NDan Williams <dan.j.williams@intel.com>
上级 6b314196
...@@ -330,7 +330,7 @@ static enum dma_state_client dmatest_add_channel(struct dma_chan *chan) ...@@ -330,7 +330,7 @@ static enum dma_state_client dmatest_add_channel(struct dma_chan *chan)
if (dtc->chan == chan) if (dtc->chan == chan)
return DMA_DUP; return DMA_DUP;
dtc = kmalloc(sizeof(struct dmatest_chan), GFP_ATOMIC); dtc = kmalloc(sizeof(struct dmatest_chan), GFP_KERNEL);
if (!dtc) { if (!dtc) {
pr_warning("dmatest: No memory for %s\n", chan->dev.bus_id); pr_warning("dmatest: No memory for %s\n", chan->dev.bus_id);
return DMA_NAK; return DMA_NAK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册