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:
55f49f2
)
USB: FIX bitfield istl_flip:1, make it unsigned.
author
Roel Kluin
<roel.kluin@gmail.com>
Wed, 18 Nov 2009 13:12:31 +0000
(14:12 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 11 Dec 2009 19:55:20 +0000
(11:55 -0800)
istl_flip is a signed bitfield of one bit so it can be -1 or 0.
However in drivers/usb/host/isp1362-hcd.c:1103:
finish_iso_transfers(isp1362_hcd,
&isp1362_hcd->istl_queue[isp1362_hcd->istl_flip]);
So if isp1362_hcd->istl_flip is set, the 2nd argument becomes
&isp1362_hcd->istl_queue[-1], which is invalid.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1362.h
patch
|
blob
|
history
diff --cc
drivers/usb/host/isp1362.h
Simple merge