usb: musb: unlock on error in cppi41_dma_callback()
PATCH 1/1 usb: musb: unlock on error in cppi41_dma_callback()
We need to unlock and enable IRQs before returning on error.
Signed-off-by Dan Carpenter <[email protected]>
---
I cannot compile this code.
drivers/usb/musb/musb_cppi41.c +2 -1
@@ -151,7 +151,7 @@ static void cppi41_dma_callback(void *private_data) direction, DMA_PREP_INTERRUPT | DMA_CTRL_ACK);if (WARN_ON (!dma_desc)) -return ; + goto out_unlock; dma_desc->callback = cppi41_dma_callback; dma_desc->callback_param = channel;
@@ -164,6 +164,7 @@ static void cppi41_dma_callback(void *private_data)musb_writew (epio,MUSB_RXCSR , csr); } } +out_unlock:spin_unlock_irqrestore (&musb->lock, flags); }
Quoted 3 lines · Dan Carpenter
We need to unlock and enable IRQs before returning on error.
Signed-off-by Dan Carpenter <[email protected]>
doesn't apply
Signature · 1 line
balbi
Quoted 6 lines · Felipe Balbi
Quoted 3 lines · Dan Carpenter
We need to unlock and enable IRQs before returning on error.
Signed-off-by Dan Carpenter <[email protected]>doesn't apply
Wei Yongjun already fixed the bug.
regards,
dan carpenter