USB: Use bInterfaceNumber in bandwidth allocations.
commitd837e219daf3bf0cc84fcfb9781807d9fe8d03b5
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 5 Jan 2010 22:33:29 +0000 (5 14:33 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:04 +0000 (2 14:54 -0800)
tree7b28362df13ca2807e66f31aefeb59599d3b648f
parent46216e4fbe8c62059b5440dec0b236f386248a41
USB: Use bInterfaceNumber in bandwidth allocations.

USB devices do not have to sort interfaces in their descriptors based on
the interface number, and they may choose to skip interface numbers.  The
USB bandwidth allocation code for installing a new configuration assumes
the for loop variable will match the interface number.  Make it use the
interface number (bInterfaceNumber) in the descriptor instead.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c