]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: at_hdmac: fix race while monitoring channel status
authorNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 12 Jan 2011 14:39:10 +0000 (15:39 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 15 Jan 2011 00:54:44 +0000 (16:54 -0800)
commit5f2d9e0018e45f5c17399887709eeba7b9b2d2ef
tree2a629da4c1650c11bb0b1783317fbda0a1799ec6
parent0e861e6e776153e76b6cf93dbcf9b859d71c8159
dmaengine: at_hdmac: fix race while monitoring channel status

We were reading channel status then taking a lock. This lead to a race because
this lock may delay us and then make this channel not idle anymore.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/at_hdmac.c