From: Ludovic Desroches Date: Thu, 13 Nov 2014 10:52:43 +0000 (+0100) Subject: dmaengine: at_xdmac: fix missing spin_unlock X-Git-Tag: v3.19-rc1~57^2~5^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87809839a56603b3ace6e7250a81afadcd916691;p=karo-tx-linux.git dmaengine: at_xdmac: fix missing spin_unlock Lock taken when entering the function but unlock missing before it returns. Signed-off-by: Ludovic Desroches Reported-by: Dan Carpenter Signed-off-by: Vinod Koul --- 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; }