usb: gadget: inode.c: fix unbalanced spin_lock in ep0_write
authorDavid Eccher <d.eccher@gmail.com>
Fri, 11 Dec 2015 21:13:55 +0000 (22:13 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Dec 2015 21:19:11 +0000 (15:19 -0600)
commitb7bd98b7db9fc8fe19da1a5ff0215311c6b95e46
tree07d1815a9de5a9c43c3940ad933fa10072c46b48
parentd0450272a6b9c6326017f490a808eb7caf214400
usb: gadget: inode.c: fix unbalanced spin_lock in ep0_write

Fix bad unlock balance: ep0_write enter with the locks locked from
inode.c:1769, hence it must exit with spinlock held to avoid double
unlock in dev_config.

Signed-off-by: David Eccher <d.eccher@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/legacy/inode.c