]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Use bInterfaceNumber in bandwidth allocations.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 5 Jan 2010 22:33:29 +0000 (14:33 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:04 +0000 (14:54 -0800)
commit62576daedf091c0618560de26a4490467abb9cb2
tree7b28362df13ca2807e66f31aefeb59599d3b648f
parent49fb0b84b739f02ca3c8dcace19f86add9680f5b
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