Thread (1 message) 1 message, 1 author, 2014-11-13
DORMANTno replies

[PATCH 5/7] dmaengine: at_xdmac: fix missing spin_unlock

From: Ludovic Desroches <hidden>
Date: 2014-11-13 10:52:43
Also in: linux-devicetree
Subsystem: dma generic offload engine subsystem, microchip at91 dma drivers, the rest · Maintainers: Vinod Koul, Ludovic Desroches, Linus Torvalds

Possibly related (same subject, not in this thread)

Lock taken when entering the function but unlock missing before it
returns.

Signed-off-by: Ludovic Desroches <redacted>
---
 drivers/dma/at_xdmac.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c
index bf2aacb..586275f 100644
--- a/drivers/dma/at_xdmac.c
+++ b/drivers/dma/at_xdmac.c
@@ -901,6 +901,7 @@ at_xdmac_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
 	 */
 	if (!desc->active_xfer) {
 		dma_set_residue(txstate, desc->xfer_size);
+		spin_unlock_bh(&atchan->lock);
 		return ret;
 	}
 
-- 
2.0.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help