diff options
-rw-r--r-- | drivers/usb/musb/musb_cppi41.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c index e64701d15401..ae959746f77f 100644 --- a/drivers/usb/musb/musb_cppi41.c +++ b/drivers/usb/musb/musb_cppi41.c | |||
@@ -150,8 +150,10 @@ static void cppi41_dma_callback(void *private_data) | |||
150 | remain_bytes, | 150 | remain_bytes, |
151 | direction, | 151 | direction, |
152 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); | 152 | DMA_PREP_INTERRUPT | DMA_CTRL_ACK); |
153 | if (WARN_ON(!dma_desc)) | 153 | if (WARN_ON(!dma_desc)) { |
154 | spin_unlock_irqrestore(&musb->lock, flags); | ||
154 | return; | 155 | return; |
156 | } | ||
155 | 157 | ||
156 | dma_desc->callback = cppi41_dma_callback; | 158 | dma_desc->callback = cppi41_dma_callback; |
157 | dma_desc->callback_param = channel; | 159 | dma_desc->callback_param = channel; |