dmaengine: shdma: fix locking
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 29 Apr 2011 17:09:21 +0000 (17:09 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 23 May 2011 03:44:20 +0000 (12:44 +0900)
commit2dc666673b5a39d005579a0ef63ae69b5094e686
treead8e8726132f428cb3a532f9eb77f4789d840344
parent5b02c51af48d6bd78e53c1e95196ce3a3572fad9
dmaengine: shdma: fix locking

Close multiple theoretical races, especially the one in
.device_free_chan_resources().

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/dma/shdma.c