From: Bryan Wu Date: Wed, 7 Jan 2009 16:21:19 +0000 (+0800) Subject: USB: composite: Fix bug: low byte of w_index is the usb interface number not the... X-Git-Tag: v2.6.29-rc3~6^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08889517b3713926169d79d99782192e86acdc67;p=pandora-kernel.git 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 Acked-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed