Add additional guards in scsi_hd.c. Patch from EluanCM.

This commit is contained in:
SarahW 2020-02-09 13:01:37 +00:00
commit e997985326

View file

@ -414,7 +414,9 @@ static int scsi_hd_command(uint8_t *cdb, void *p)
}
for (; len >= 0; len--)
{
add_data_len(0);
}
len = data->data_pos_write;
if (cdb[0] == SCSI_MODE_SENSE_6)