• Andrew Morton's avatar
    [PATCH] Fix scsi_report_lun_scan sign bug · 108ff4c2
    Andrew Morton authored
    We need to make the scan data unsigned, since we do
    
     	length = ((data[0] << 24) | (data[1] << 16) |
     		  (data[2] << 8) | (data[3] << 0));
    
    and if data[3] is 0xff, this expression will always evaluate to
    0xffffffff.  etcetera.
    108ff4c2
scsi_scan.c 36.5 KB