diff options
author | 2005-10-17 14:30:43 -0700 | |
---|---|---|
committer | 2005-10-17 14:45:49 -0700 | |
commit | e9b765decfb49ddc105d303d491e1bee9769436f (patch) | |
tree | 16fdd136b112a86c4313436e83a51549346db40c /drivers/i2c/i2c-dev.c | |
parent | Increase default RCU batching sharply (diff) | |
download | wireguard-linux-e9b765decfb49ddc105d303d491e1bee9769436f.tar.xz wireguard-linux-e9b765decfb49ddc105d303d491e1bee9769436f.zip |
[PATCH] isp116x-hcd: fix handling of short transfers
Increased use of scatter-gather by usb-storage driver after 2.6.13 has
exposed a buggy codepath in isp116x-hcd, which was probably never
visited before: bug happened only for those urbs, for which
URB_SHORT_NOT_OK was set AND short transfer occurred.
The fix attached was tested in 2 ways: (a) it fixed failing
initialization of a flash drive with an embedded hub; (b) the fix was
tested with 'usbtest' against a modified g_zero driver (on top of
net2280), which generated short bulk IN transfers of various lengths
including multiples and non-multiples of max_packet_length.
Signed-off-by: Olav Kongas <ok@artecdesign.ee>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
0 files changed, 0 insertions, 0 deletions