aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-omap/include
diff options
context:
space:
mode:
authorSantosh Shilimkar <santosh.shilimkar@ti.com>2009-04-23 11:10:40 -0700
committerTony Lindgren <tony@atomide.com>2009-04-23 11:10:40 -0700
commitda1b94e6a68e1bdeb9cdda016cceb17228b37d25 (patch)
tree2c405438f9f296d15470382c00d4d00b4c42891a /arch/arm/plat-omap/include
parent091069740304c979f957ceacec39c461d0192158 (diff)
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>
Diffstat (limited to 'arch/arm/plat-omap/include')
0 files changed, 0 insertions, 0 deletions