https://github.com/torvalds/linux
Revision 08889517b3713926169d79d99782192e86acdc67 authored by Bryan Wu on 07 January 2009, 16:21:19 UTC, committed by Greg Kroah-Hartman on 28 January 2009, 00:15:35 UTC
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>

1 parent dd4dff8
History
Tip revision: 08889517b3713926169d79d99782192e86acdc67 authored by Bryan Wu on 07 January 2009, 16:21:19 UTC
USB: composite: Fix bug: low byte of w_index is the usb interface number not the whole 2 bytes of w_index
Tip revision: 0888951
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.3 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 106.5 KB
Makefile -rw-r--r-- 53.2 KB
README -rw-r--r-- 16.7 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top