usbdevfs: Fix broken scatter-gather transfer
authorHenrik Rydberg <rydberg@euromail.se>
Sat, 13 Oct 2012 10:20:36 +0000 (12:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Oct 2012 20:41:34 +0000 (13:41 -0700)
commit014639003c77a51fc319c9fdf225e7747cb6e18d
tree6d7b1bd91e3fe37b70953b6786310482095a0fa4
parent2c78040c3e2735b8286bbb848db0372b8d408e2d
usbdevfs: Fix broken scatter-gather transfer

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 <stable@vger.kernel.org>
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>
drivers/usb/core/devio.c