Greg, this is another 2.5/6 patch -- please apply.

As with the last two, the description is below.

Matt

----- Forwarded message from Alan Stern <[EMAIL PROTECTED]> -----

Date: Fri, 24 Oct 2003 15:38:25 -0400 (EDT)
From: Alan Stern <[EMAIL PROTECTED]>
Subject: PATCH: (as120) Fix logic error in raw_bulk.c:us_copy_to_sgbuf()
To: Matthew Dharm <[EMAIL PROTECTED]>
cc: USB Storage List <[EMAIL PROTECTED]>
X-Spam-Status: No, hits=-5.0 required=5.0 tests=UNIFIED_PATCH version=2.11

Matt:

This patch fixes a simple logic error in the routine that copies data from 
a driver buffer to a scatter-gather user buffer.

Alan Stern


===== raw_bulk.c 1.13 vs edited =====
--- 1.13/drivers/usb/storage/raw_bulk.c Mon Nov 18 13:52:32 2002
+++ edited/drivers/usb/storage/raw_bulk.c       Fri Oct 24 15:35:52 2003
@@ -96,7 +96,7 @@
                        length = room;
                
                memcpy(ptr, buffer+transferred, length);
-               transferred += sg[i].length;
+               transferred += length;
                *offset += length;
                if (length == room) {
                        i++;

----- End forwarded message -----

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

NYET! The evil stops here!
                                        -- Pitr
User Friendly, 6/22/1998

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to