diff options
author | Felipe Balbi <balbi@ti.com> | 2015-01-29 10:29:18 -0600 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-29 10:29:18 -0600 |
commit | 5c7b3b02de766a8634708953e805399e3544a290 (patch) | |
tree | c09494a8624c965ee94f1ef27e24f271774ac8c2 /drivers/usb/dwc3 | |
parent | 73815280a5af8d95e818eb25f4091e86497dfa4b (diff) | |
download | linux-stable-5c7b3b02de766a8634708953e805399e3544a290.tar.gz linux-stable-5c7b3b02de766a8634708953e805399e3544a290.tar.bz2 linux-stable-5c7b3b02de766a8634708953e805399e3544a290.zip |
usb: dwc3: gadget: add missing spin_lock()
commit 8e74475b0e0a (usb: dwc3: gadget: use udc-core's
reset notifier) added support for the new UDC core's
reset notifier to dwc3 but while at it, it removed
a spin_lock() from dwc3_reset_gadget() which might
cause an unbalanced spin_unlock() further down the line
Fixes: 8e74475b0e0a (usb: dwc3: gadget: use udc-core's reset notifier)
Cc: <stable@vger.kernel.org> # v3.19
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 7cce00e7102b..eccd29b16840 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2045,6 +2045,7 @@ static void dwc3_resume_gadget(struct dwc3 *dwc) if (dwc->gadget_driver && dwc->gadget_driver->resume) { spin_unlock(&dwc->lock); dwc->gadget_driver->resume(&dwc->gadget); + spin_lock(&dwc->lock); } } |