Selaa lähdekoodia

scsi: reset lba for this as the stand alone REQUEST SENSE is not in reference to a previous transfer.

Eric Helgeson 1 vuosi sitten
vanhempi
sitoutus
0b17a9ec27
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      lib/SCSI2SD/src/firmware/scsi.c

+ 1 - 0
lib/SCSI2SD/src/firmware/scsi.c

@@ -559,6 +559,7 @@ static void process_Command()
 			{
 				scsiDev.target->sense.code = ILLEGAL_REQUEST;
 				scsiDev.target->sense.asc = LOGICAL_UNIT_NOT_SUPPORTED;
+				transfer.lba = 0;
 			}
 			memset(scsiDev.data, 0, 256); // Max possible alloc length
 			scsiDev.data[0] = 0xF0;