mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04: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 <[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]>
This commit is contained in:
parent
2c78040c3e
commit
014639003c
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue