]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: dummy_hcd: fixup error probe path
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Sun, 19 Aug 2012 19:54:58 +0000 (21:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:09 +0000 (10:39 -0700)
commitf5da200019dab1a1763f8361fdfd94389bf7f37a
tree21a628b2a52111e61367a76aef243383905fc2b9
parented60c28a0c7861e2c5df2a985c11f757564b66a9
usb: gadget: dummy_hcd: fixup error probe path

commit 1b68a4ca2d038addb7314211d122fb6d7002b38b upstream.

If USB2 host controller probes fine but USB3 does not then we don't
remove the USB controller properly and lock up the system while the HUB
code will try to enumerate the USB2 controller and access memory which
is no longer available in case the dummy_hcd was compiled as a module.

This is a problem since 448b6eb1 ("USB: Make sure to fetch the BOS desc
for roothubs.) if used in USB3 mode because dummy does not provide this
descriptor and explodes later.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/dummy_hcd.c