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-07 09:59:58 -08:00
2009-01-07 09:59:58 -08:00
2008-10-22 10:05:28 -07:00
2008-11-13 14:45:06 -08:00
2008-10-17 14:40:53 -07:00
2009-01-07 17:24:34 -08:00
2009-01-07 10:00:11 -08:00
2009-01-07 10:00:11 -08:00
2009-01-07 10:00:11 -08:00
2009-01-05 11:54:28 -05:00
2009-01-07 10:00:11 -08:00
2009-01-07 10:00:11 -08:00
2008-07-21 15:16:10 -07:00
2009-01-07 10:00:02 -08:00
2008-07-21 15:16:10 -07:00
2009-01-07 18:05:39 -08:00
2008-10-17 14:40:53 -07:00
2008-10-16 09:24:46 -07:00