OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa6997d
)
usb: phy: Fix double lock in OTG FSM
author
Anton Tikhomirov
<av.tikhomirov@samsung.com>
Fri, 20 Dec 2013 10:06:24 +0000
(19:06 +0900)
committer
Felipe Balbi
<balbi@ti.com>
Fri, 20 Dec 2013 21:05:49 +0000
(15:05 -0600)
Mutex obtained at the beginning of the function should
be released at the end to avoid double locking.
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-fsm-usb.c
patch
|
blob
|
history
diff --git
a/drivers/usb/phy/phy-fsm-usb.c
b/drivers/usb/phy/phy-fsm-usb.c
index
6223872
..
65c3a72
100644
(file)
--- a/
drivers/usb/phy/phy-fsm-usb.c
+++ b/
drivers/usb/phy/phy-fsm-usb.c
@@
-357,7
+357,7
@@
int otg_statemachine(struct otg_fsm *fsm)
default:
break;
}
- mutex_lock(&fsm->lock);
+ mutex_
un
lock(&fsm->lock);
VDBG("quit statemachine, changed = %d\n", state_changed);
return state_changed;