Skip to content

Commit

Permalink
usbdevfs: Fix broken scatter-gather transfer
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rydberg authored and gregkh committed Oct 17, 2012
1 parent 2c78040 commit 0146390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/core/devio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0146390

Please sign in to comment.