Skip to content

Commit

Permalink
ARM: OMAP: DMA: Fix uninitialized channel flags
Browse files Browse the repository at this point in the history
This has similar symptoms than 66c2355
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>
  • Loading branch information
Jarkko Nikula authored and Tony Lindgren committed Jan 29, 2009
1 parent 320ce6f commit a92fda1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/plat-omap/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,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()) {
Expand Down

0 comments on commit a92fda1

Please sign in to comment.