Explorar el Código

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

Eric Helgeson hace 1 año
padre
commit
0b17a9ec27
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;