mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
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>
This commit is contained in:
parent
2c78040c3e
commit
014639003c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user