Ticket #4850: usb-storage-allow-16-byte-cdb.patch

File usb-storage-allow-16-byte-cdb.patch, 418 bytes (added by dannybaumann@…, 7 years ago)

Fix

  • (a) a/drivers/usb/storage/scsiglue.c.old vs. (b) b/drivers/usb/storage/scsiglue.c

    a b  
    9595        if (us->host) { 
    9696                us->host->hostdata[0] = (unsigned long)us; 
    9797                us->host_no = us->host->host_no; 
     98 
     99                /* allow 16-byte CDBs as virtually all USB storage 
     100                   devices are ATA devices anyways */ 
     101                us->host->max_cmd_len = 16; 
     102 
    98103                return 1; 
    99104        } 
    100105