[PATCH] USB: usbcore: Don't assume a USB configuration includes any interfaces
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 8 Mar 2006 20:14:09 +0000 (15:14 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 22:50:01 +0000 (14:50 -0800)
commit6aa35675bbc370e5f11baae7e01a9ab255d8030c
treef42b4adac70483f90bcb3c4de9c4d5db964cf43a
parent11a223ae3b86b94391774512e5671600367a305c
[PATCH] USB: usbcore: Don't assume a USB configuration includes any interfaces

In a couple of places, usbcore assumes that a USB device configuration
will have a nonzero number of interfaces.  Having no interfaces may or
may not be allowed by the USB spec; in any event we shouldn't die if we
encounter such a thing.  This patch (as662) removes the assumptions.

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