git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd4dff8
)
USB: composite: Fix bug: low byte of w_index is the usb interface number not the...
author
Bryan Wu
<cooloney@kernel.org>
Wed, 7 Jan 2009 16:21:19 +0000
(
00:21
+0800)
committer
Greg Kroah-Hartman
<gregkh@kvm.kroah.org>
Wed, 28 Jan 2009 00:15:35 +0000
(16:15 -0800)
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>
drivers/usb/gadget/composite.c
patch
|
blob
|
history
diff --cc
drivers/usb/gadget/composite.c
Simple merge