]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: DMA: Fix uninitialized channel flags
authorJarkko Nikula <jarkko.nikula@nokia.com>
Mon, 18 Aug 2008 09:28:22 +0000 (12:28 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 18 Aug 2008 12:13:49 +0000 (15:13 +0300)
This has similar symptoms than 66c23551b1b774e2be3c7bdf91c0ebf2c7a3519e
where just omap_request_dma, omap_dma_link_lch and omap_dma_unlink_lch
can cause incorrect dump_stack(). Here it can happen if channel has been
used before and the channel flags variable holds old status.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dma.c

index a63b644ad30574b024f4ff60146f9233b7fa17db..1c6b9052d69103830a15542e42d878fa2e5674ad 100644 (file)
@@ -712,6 +712,7 @@ int omap_request_dma(int dev_id, const char *dev_name,
        chan->dev_name = dev_name;
        chan->callback = callback;
        chan->data = data;
+       chan->flags = 0;
 
 #ifndef CONFIG_ARCH_OMAP1
        if (cpu_class_is_omap2()) {