commit | 7005234c18f233d3613b09e9ce4b6ce6977bf246 | [log] [tgz] |
---|---|---|
author | Thomas Pugliese <thomas.pugliese@gmail.com> | Mon Dec 09 13:10:41 2013 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Dec 09 13:26:35 2013 -0800 |
tree | 6612b7a847c145ff7b27ab469c2dc6f885f28bc1 | |
parent | e0e6a356a0b41375b729c511caa99d3ec019640e [diff] |
usb: wusbcore: fix short transfers If a URB is broken up into multiple transfer segments and a short transfer occurs in any segment other than the last, the URB will currently get stuck in the driver forever. This patch adds a check for a short transfer and cleans up any pending segments so the URB can complete properly. Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>