[PATCH] Fix scsi_report_lun_scan sign bug
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.
Showing
Please register or sign in to comment