Bryan Wu 08889517b3 USB: composite: Fix bug: low byte of w_index is the usb interface number not the whole 2 bytes of w_index
In some usb gadget driver, for example usb audio class device, the high
byte of w_index is the entity id and low byte is the interface number.
If we use the 2 bytes of w_index as the array number, we will get a
wrong pointer or NULL pointer.

This patch fixes this issue.

Signed-off-by: Bryan Wu <cooloney@kernel.org>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-01-27 16:15:35 -08:00
..
2009-01-16 14:45:34 -05:00
2009-01-19 13:46:57 +01:00
2009-01-11 01:34:25 +01:00
2009-01-26 12:24:38 -08:00
2009-01-15 16:39:40 -08:00
2009-01-26 21:19:57 +01:00
2009-01-16 14:45:34 -05:00
2009-01-09 03:39:43 -05:00