aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-08-18 04:13:13 -0400
committerFelipe Balbi <balbi@ti.com>2013-08-27 15:16:51 -0400
commit0b5c1e62d80c8ee43b9f8435fe54ed097dba6a3c (patch)
treed368c696e282864449cb424bc4cc06565907a663 /drivers/usb/musb
parentbd2fbf3a5602d9721b82e4fc71a68167f3a7ec86 (diff)
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_cppi41.c4
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;