Commit 1fca60c0 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] USB storage: Fix logic error in raw_bulk.c:us_copy_to_sgbuf()

This patch fixes a simple logic error in the routine that copies data from
a driver buffer to a scatter-gather user buffer.
parent af62566f
......@@ -96,7 +96,7 @@ us_copy_to_sgbuf(unsigned char *buffer, int buflen,
length = room;
memcpy(ptr, buffer+transferred, length);
transferred += sg[i].length;
transferred += length;
*offset += length;
if (length == room) {
i++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment