Without this patch I cannot get my datafab usb CF reader working.
The patch is for linux-2.6.0-test9

I think the bug was introduced here:
http://linuxusb.bkbits.net:8080/gregkh-2.6/diffs/drivers/usb/storage/[EMAIL 
PROTECTED]|src/|src/drivers|src/drivers/usb|src/drivers/usb/storage|hist/drivers/usb/storage/datafab.c
--- linux-2.6.0-test9/drivers/usb/storage/jumpshot.c.orig       2003-10-25 
20:42:49.000000000 +0200
+++ linux-2.6.0-test9/drivers/usb/storage/jumpshot.c    2003-11-22 18:38:07.705653776 
+0100
@@ -317,7 +317,7 @@
        }
 
        // read the reply
-       rc = jumpshot_bulk_read(us, reply, sizeof(reply));
+       rc = jumpshot_bulk_read(us, reply, 512);
        if (rc != USB_STOR_XFER_GOOD) {
                rc = USB_STOR_TRANSPORT_ERROR;
                goto leave;
--- linux-2.6.0-test9/drivers/usb/storage/datafab.c.orig        2003-10-25 
20:44:53.000000000 +0200
+++ linux-2.6.0-test9/drivers/usb/storage/datafab.c     2003-11-22 18:37:53.793768704 
+0100
@@ -387,7 +387,7 @@
 
        // we'll go ahead and extract the media capacity while we're here...
        //
-       rc = datafab_bulk_read(us, reply, sizeof(reply));
+       rc = datafab_bulk_read(us, reply, 512);
        if (rc == USB_STOR_XFER_GOOD) {
                // capacity is at word offset 57-58
                //

Reply via email to