diff options
author | Ludovic Desroches <ludovic.desroches@atmel.com> | 2014-11-13 11:52:43 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-11-17 09:37:20 +0100 |
commit | 87809839a56603b3ace6e7250a81afadcd916691 (patch) | |
tree | 2bbb0d143624e33fd56ac8fd97725e1338f576d4 /drivers/dma | |
parent | dmaengine: at_xdmac: fix a bug in transfer residue computation (diff) | |
download | linux-87809839a56603b3ace6e7250a81afadcd916691.tar.xz linux-87809839a56603b3ace6e7250a81afadcd916691.zip |
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/at_xdmac.c | 1 |
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; } |