Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b5c1e62 authored by Wei Yongjun's avatar Wei Yongjun Committed by Felipe Balbi
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent bd2fbf3a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;