1
linux/arch/arm/plat-omap
Santosh Shilimkar da1b94e6a6 ARM: OMAP: Fix for possible race condition in omap_free_dma()
Fix the possible race condition in omap_free_dma(). Function omap_free_dma()
sets the dev_id = -1 and then accesses the channel afterwards to clear it.
But setting the dev_id=-1 makes the channel available for allocation again.
So it is possible someone else can grab it and results are unpredictable.
To avod this DMA channle is cleared first and then the dev_id = -1 is set.

Thanks to McNeil, Sean <sean.mcneil@ti.com> for ointing out this issue.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2009-04-23 11:10:40 -07:00
..
include/mach [ARM] 5434/1: ARM: OMAP: Fix mailbox compile for 24xx 2009-03-28 19:35:02 +00:00
clock.c [ARM] omap: clk_set_parent: deny changing parent if clock is enabled 2009-03-03 13:08:18 +00:00
common.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
cpu-omap.c [ARM] OMAP2: Implement CPUfreq frequency table based on PRCM table 2009-02-08 17:50:28 +00:00
debug-devices.c ARM: OMAP: Switch to gpio_request/free calls 2008-12-10 17:35:30 -08:00
debug-leds.c ARM: OMAP: switch to standard gpio get/set calls 2008-12-10 17:35:25 -08:00
devices.c ARM: OMAP3: mmc-twl4030 init passes device nodes back, v2 2009-03-23 18:51:22 -07:00
dma.c ARM: OMAP: Fix for possible race condition in omap_free_dma() 2009-04-23 11:10:40 -07:00
dmtimer.c ARM: OMAP: Export dmtimer functions 2009-03-23 18:51:19 -07:00
fb.c [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
gpio.c [OMAP850] Changes to base IO subsystem, v2 2009-03-23 18:07:40 -07:00
i2c.c ARM: OMAP: Add method to register additional I2C busses on the command line, v2 2009-03-23 18:51:20 -07:00
io.c ARM: OMAP3: Add minimal omap3430 support 2008-10-09 17:51:41 +03:00
Kconfig Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into devel 2009-03-25 18:31:35 +00:00
mailbox.c omap mailbox: remove unnecessary header file inclusion 2009-03-23 18:07:32 -07:00
Makefile ARM: OMAP: Allow I2C bus driver to be compiled as a module 2009-03-04 10:07:41 -08:00
mcbsp.c [ARM] omap: mcbsp: convert to use fck/ick clocks directly 2009-02-08 17:50:19 +00:00
mux.c [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
ocpi.c [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
sram.c [OMAP850] Changes to memory subsystem 2009-03-23 18:51:19 -07:00
usb.c ARM: OMAP: get rid of OMAP_TAG_USB, v2 2009-03-23 18:51:20 -07:00