]> git.hungrycats.org Git - linux/commit
usb: gadget: udc-core: fix wrong call order
authorFelipe Balbi <balbi@ti.com>
Fri, 27 Apr 2012 08:02:15 +0000 (11:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:22 +0000 (09:32 -0700)
commit804596fcfa2946ea83737346290f806651cd69ea
tree6372f5229c85c3bc2037c03d02efbc479971e2b7
parentf3d426d5b791e91a0c515ac8f9dbf9e16dc439e6
usb: gadget: udc-core: fix wrong call order

commit 83a787a71e034244a9fd1d5988fe18f226341417 upstream.

commit 6d258a4 (usb: gadget: udc-core: stop UDC on device-initiated
disconnect) introduced another case of asymmetric calls when issuing
a device-initiated disconnect. Fix it.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc-core.c