Skip to content

Commit

Permalink
drivers/dma/dmatest.c: switch a GFP_ATOMIC to GFP_KERNEL
Browse files Browse the repository at this point in the history
It was needlessly using the unreliable GFP_ATOMIC.

Cc: Timur Tabi <timur@freescale.com>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Andrew Morton authored and Dan Williams committed Sep 19, 2008
1 parent 6b31419 commit 6fdb8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/dmatest.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ static enum dma_state_client dmatest_add_channel(struct dma_chan *chan)
if (dtc->chan == chan)
return DMA_DUP;

dtc = kmalloc(sizeof(struct dmatest_chan), GFP_ATOMIC);
dtc = kmalloc(sizeof(struct dmatest_chan), GFP_KERNEL);
if (!dtc) {
pr_warning("dmatest: No memory for %s\n", chan->dev.bus_id);
return DMA_NAK;
Expand Down

0 comments on commit 6fdb8bd

Please sign in to comment.