summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-fsm-usb.c
diff options
context:
space:
mode:
authorAnton Tikhomirov <av.tikhomirov@samsung.com>2013-12-20 11:06:24 +0100
committerFelipe Balbi <balbi@ti.com>2013-12-20 22:05:49 +0100
commit16da4b174b08c42076cd3384c420f352c909d467 (patch)
treebef91cfb6e57362dba1f7d818f6e03a5df0e2c24 /drivers/usb/phy/phy-fsm-usb.c
parentusb: musb: fix musb pointer acqusition in musb_host_finish_resume (diff)
downloadlinux-16da4b174b08c42076cd3384c420f352c909d467.tar.xz
linux-16da4b174b08c42076cd3384c420f352c909d467.zip
usb: phy: Fix double lock in OTG FSM
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>
Diffstat (limited to 'drivers/usb/phy/phy-fsm-usb.c')
-rw-r--r--drivers/usb/phy/phy-fsm-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-fsm-usb.c b/drivers/usb/phy/phy-fsm-usb.c
index 62238726fb1c..65c3a728ef4f 100644
--- 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_unlock(&fsm->lock);
VDBG("quit statemachine, changed = %d\n", state_changed);
return state_changed;