USB: prevent buggy hubs from crashing the USB stack
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 31 Jan 2011 15:56:37 +0000 (10:56 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:13:45 +0000 (15:13 -0800)
commitde3e365127bc56dd0b1f8d684b184d43efcd50b4
tree12a9aff7bee5c5d051cd1acab311aec3f7ab8a99
parentf67b9afe61d12e770b44944dfbb96cd74d8da024
USB: prevent buggy hubs from crashing the USB stack

commit d199c96d41d80a567493e12b8e96ea056a1350c1 upstream.

If anyone comes across a high-speed hub that (by mistake or by design)
claims to have no Transaction Translators, plugging a full- or
low-speed device into it will cause the USB stack to crash.  This
patch (as1446) prevents the problem by ignoring such devices, since
the kernel has no way to communicate with them.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Perry Neben <neben@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c