usb: gadget: inode.c: fix unbalanced spin_lock in ep0_write
commitabb540b5397674243994c5327146b6fed7339b71
authorDavid Eccher <d.eccher@gmail.com>
Fri, 11 Dec 2015 21:13:55 +0000 (11 22:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 07:18:00 +0000 (12 09:18 +0200)
tree6e34e93b2c47a7a1ea32a3d109433174d3ad8f7d
parentac0058305d83e8e50a9652a003bc2ec468df9f87
usb: gadget: inode.c: fix unbalanced spin_lock in ep0_write

commit b7bd98b7db9fc8fe19da1a5ff0215311c6b95e46 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/legacy/inode.c