diff options
| author | Ludovic Desroches <ludovic.desroches@atmel.com> | 2014-11-13 05:52:43 -0500 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2014-11-17 03:37:20 -0500 |
| commit | 87809839a56603b3ace6e7250a81afadcd916691 (patch) | |
| tree | 2bbb0d143624e33fd56ac8fd97725e1338f576d4 | |
| parent | 57819276db8ae06e231b884377b75860f267d984 (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.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, | |||
| 901 | */ | 901 | */ |
| 902 | if (!desc->active_xfer) { | 902 | if (!desc->active_xfer) { |
| 903 | dma_set_residue(txstate, desc->xfer_size); | 903 | dma_set_residue(txstate, desc->xfer_size); |
| 904 | spin_unlock_bh(&atchan->lock); | ||
| 904 | return ret; | 905 | return ret; |
| 905 | } | 906 | } |
| 906 | 907 | ||
