drivers/dma/dmatest.c: switch a GFP_ATOMIC to GFP_KERNEL
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 19 Sep 2008 11:16:23 +0000 (04:16 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 19 Sep 2008 11:16:23 +0000 (04:16 -0700)
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>
drivers/dma/dmatest.c

index 422500c6c1631114e1580dc53bfab449b08ebaf6..d1e381e35a9e1887e79667d3df734d3dd37ad5b9 100644 (file)
@@ -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;