linux/drivers/usb/wusbcore
Thomas Pugliese 4659a2452b usb: wusbcore: adjust iterator correctly when searching for ep comp descriptor
If the endpoint companion descriptor is not the first descriptor in the
extra descriptor buffer of a usb_host_endpoint, the loop in
rpipe_epc_find will get its buffer pointer and remaining size values out
of sync.  The buffer ptr 'itr' is advanced by the descriptor's bLength
field but the remaining size value 'itr_size' is decremented by the
bDescriptorType field which is incorrect.  This patch fixes the loop to
decrement itr_size by bLength as it should.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-28 16:14:48 -08:00
..
Kconfig USB: regroup all depends on USB within an if USB block 2013-04-09 16:49:07 -07:00
Makefile usb: makefile cleanup 2010-10-22 10:22:07 -07:00
cbaf.c USB: wusbcore: fix up minor coding style issues in cbaf.c 2014-01-07 16:18:42 -08:00
crypto.c USB: wusbcore: correct spelling mistakes in comments and error string 2014-01-07 16:17:41 -08:00
dev-sysfs.c uwb: use dev_dbg() for debug messages 2008-12-22 18:22:50 +00:00
devconnect.c USB: wusbcore: correct spelling mistakes in comments and error string 2014-01-07 16:17:41 -08:00
mmc.c USB: wusbcore: fix up line break coding style issues in mmc.c 2014-01-07 16:19:31 -08:00
pal.c usb: wusbcore: add debug prints to reservation and channel change 2013-12-20 12:06:46 -08:00
reservation.c usb: wusbcore: add debug prints to reservation and channel change 2013-12-20 12:06:46 -08:00
rh.c wusbcore: fix root hub hub_status_data to only return > 0 if status has actually changed 2013-08-12 13:13:32 -07:00
security.c USB: wusbcore: fix up line break coding style issues in security.c 2014-01-07 16:19:30 -08:00
wa-hc.c usb: wusbcore: add a quirk for Alereon HWA device isoc behavior 2013-10-29 16:44:49 -07:00
wa-hc.h USB: wusbcore: fix up line break coding style issues in wa-hc.h 2014-01-07 16:19:30 -08:00
wa-nep.c USB: wusbcore: fix up coding style issues in wa-nep.c 2014-01-07 16:19:31 -08:00
wa-rpipe.c usb: wusbcore: adjust iterator correctly when searching for ep comp descriptor 2014-02-28 16:14:48 -08:00
wa-xfer.c usb: wusbcore: add a convenience function for completing a transfer segment 2014-02-28 16:13:09 -08:00
wusbhc.c USB: wusbcore: fix up coding style issues in wusbhc.c and wusbhc.h 2014-01-07 16:19:31 -08:00
wusbhc.h USB: wusbcore: fix up coding style issues in wusbhc.c and wusbhc.h 2014-01-07 16:19:31 -08:00