]> git.ipfire.org Git - people/ms/linux.git/commit
usb: dwc3: gadget: add missing spin_lock()
authorFelipe Balbi <balbi@ti.com>
Thu, 29 Jan 2015 16:29:18 +0000 (10:29 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:57:34 +0000 (14:57 -0800)
commit09271f4eea9cd11543ae91db02727a3b20b29d03
tree58654cb61dcef3b9cba762e500fbea2ca4b791ba
parent07cc714778101a93ea971dd9d01a1bff8f00dc94
usb: dwc3: gadget: add missing spin_lock()

commit 5c7b3b02de766a8634708953e805399e3544a290 upstream.

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)
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c