diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2012-10-13 12:20:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-28 10:56:09 -0700 |
commit | e4e29779ec498f4905461a13b6ba58ba4f60152b (patch) | |
tree | 9a2e344085a169927cb7f31d15297de0e2bc7ee4 /drivers | |
parent | b1f9e723563c5dae07c0c8d49b21ea9602c3e644 (diff) |
usbdevfs: Fix broken scatter-gather transfer
commit 014639003c77a51fc319c9fdf225e7747cb6e18d upstream.
The handling of large output bulk transfers is broken; the same user
page is read over and over again. Fixed with this patch.
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/core/devio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index ebb8a9de8b5..7f75343a15b 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c @@ -1348,6 +1348,7 @@ static int proc_do_submiturb(struct dev_state *ps, struct usbdevfs_urb *uurb, ret = -EFAULT; goto error; } + uurb->buffer += u; } totlen -= u; } |