diff options
author | Thomas Pugliese <thomas.pugliese@gmail.com> | 2014-02-28 15:15:19 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-28 16:14:48 -0800 |
commit | 4659a2452baa7d89324fda097158d7f8fe71e0cb (patch) | |
tree | e7a7baee33501d5e3713a725c28e786d193b2e33 /ipc | |
parent | e500d526f968f184462912334b74b80dc905fca0 (diff) | |
download | linux-4659a2452baa7d89324fda097158d7f8fe71e0cb.tar.bz2 |
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>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions