提交 0b5c1e62 编写于 作者: W Wei Yongjun 提交者: Felipe Balbi

usb: musb: cppi41: fix missing unlock on error in cppi41_dma_callback()

Add the missing unlock before return from function cppi41_dma_callback()
in the error handling case.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 bd2fbf3a
......@@ -150,8 +150,10 @@ static void cppi41_dma_callback(void *private_data)
remain_bytes,
direction,
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
if (WARN_ON(!dma_desc))
if (WARN_ON(!dma_desc)) {
spin_unlock_irqrestore(&musb->lock, flags);
return;
}
dma_desc->callback = cppi41_dma_callback;
dma_desc->callback_param = channel;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册