Add additional guards in scsi_hd.c. Patch from EluanCM.
This commit is contained in:
parent
cda00d95cf
commit
e997985326
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue