projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd2fbf3
)
usb: musb: cppi41: fix missing unlock on error in cppi41_dma_callback()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Sun, 18 Aug 2013 08:13:13 +0000
(16:13 +0800)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 27 Aug 2013 19:16:51 +0000
(14:16 -0500)
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>
drivers/usb/musb/musb_cppi41.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/musb/musb_cppi41.c
b/drivers/usb/musb/musb_cppi41.c
index e64701d15401bc42ebb2bd800ec48d848242ec3b..ae959746f77f04331a1d8dde9d1da57d90af24b8 100644
(file)
--- 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)
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;