Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16da4b17 authored by Anton Tikhomirov's avatar Anton Tikhomirov Committed by Felipe Balbi
Browse files

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: default avatarAnton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent fa6997d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;