aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Desroches2014-11-13 11:52:43 +0100
committerVinod Koul2014-11-17 14:07:20 +0530
commit87809839a56603b3ace6e7250a81afadcd916691 (patch)
tree2bbb0d143624e33fd56ac8fd97725e1338f576d4
parent57819276db8ae06e231b884377b75860f267d984 (diff)
dmaengine: at_xdmac: fix missing spin_unlock
Lock taken when entering the function but unlock missing before it returns. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/at_xdmac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c
index bf2aacbbf4cc..586275fe1120 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;
}