提交 87809839 编写于 作者: L Ludovic Desroches 提交者: Vinod Koul

dmaengine: at_xdmac: fix missing spin_unlock

Lock taken when entering the function but unlock missing before it
returns.
Signed-off-by: NLudovic Desroches <ludovic.desroches@atmel.com>
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 57819276
...@@ -901,6 +901,7 @@ at_xdmac_tx_status(struct dma_chan *chan, dma_cookie_t cookie, ...@@ -901,6 +901,7 @@ at_xdmac_tx_status(struct dma_chan *chan, dma_cookie_t cookie,
*/ */
if (!desc->active_xfer) { if (!desc->active_xfer) {
dma_set_residue(txstate, desc->xfer_size); dma_set_residue(txstate, desc->xfer_size);
spin_unlock_bh(&atchan->lock);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册