mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
dmaengine: at_xdmac: fix missing spin_unlock
Lock taken when entering the function but unlock missing before it returns. Signed-off-by: Ludovic Desroches <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
parent
57819276db
commit
87809839a5
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue