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

Commit bb7c0d55 authored by Mayank Rana's avatar Mayank Rana
Browse files

dwc3: gadget: Fix spinlock recursive issue



Commit a99689ae ("dwc3: Add QTI MSM platform specific feature and
other changes") replaced spin_unlock_irqrestore() with
spin_lock_irqsave() causing spinlock recursive bug. Fix this issue
by using spin_unlock_irqrestore() API.

Change-Id: I073220d7a248e8bb78e72d785e107da14b2e166d
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 5c4400be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2084,7 +2084,7 @@ static int dwc3_gadget_stop(struct usb_gadget *g)
	spin_lock_irqsave(&dwc->lock, flags);
	__dwc3_gadget_stop(dwc);
	dwc->gadget_driver = NULL;
	spin_lock_irqsave(&dwc->lock, flags);
	spin_unlock_irqrestore(&dwc->lock, flags);

	pm_runtime_mark_last_busy(dwc->dev);
	pm_runtime_put_autosuspend(dwc->dev);