projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c78040
)
usbdevfs: Fix broken scatter-gather transfer
author
Henrik Rydberg
<
[email protected]
>
Sat, 13 Oct 2012 10:20:36 +0000
(12:20 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 17 Oct 2012 20:41:34 +0000
(13:41 -0700)
The handling of large output bulk transfers is broken; the same user
page is read over and over again. Fixed with this patch.
Cc: stable <
[email protected]
>
Acked-by: Peter Stuge <
[email protected]
>
Acked-by: Hans de Goede <
[email protected]
>
Acked-by: Alan Stern <
[email protected]
>
Signed-off-by: Henrik Rydberg <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/core/devio.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/devio.c
b/drivers/usb/core/devio.c
index e0356cb859b5910eaaf5aa6e0b324808c56f4c0a..b78fbe222b72c2e3bc662973e9f9f08941ce2628 100644
(file)
--- 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;
}