aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorSantosh Shilimkar <[email protected]>2009-04-23 11:10:40 -0700
committerTony Lindgren <[email protected]>2009-04-23 11:10:40 -0700
commitda1b94e6a68e1bdeb9cdda016cceb17228b37d25 (patch)
tree2c405438f9f296d15470382c00d4d00b4c42891a /net/lapb/lapb_in.c
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 <[email protected]> for ointing out this issue. Signed-off-by: Santosh Shilimkar <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions