From 16da4b174b08c42076cd3384c420f352c909d467 Mon Sep 17 00:00:00 2001 From: Anton Tikhomirov Date: Fri, 20 Dec 2013 19:06:24 +0900 Subject: [PATCH] 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 Signed-off-by: Felipe Balbi --- drivers/usb/phy/phy-fsm-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-fsm-usb.c b/drivers/usb/phy/phy-fsm-usb.c index 62238726fb1..65c3a728ef4 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; -- 2.46.0