Sanitized the buffer zeroing on REQUEST SENSE for both ATAPI and SCSI.

This commit is contained in:
OBattler
2017-01-05 04:46:50 +01:00
parent 66838be5f9
commit bb89a07a63
2 changed files with 5 additions and 2 deletions

View File

@@ -1946,7 +1946,10 @@ static void atapicommand(int ide_board)
temp_command = idebufferb[0];
/*Will return 18 bytes of 0*/
memset(idebufferb,0,512);
if (alloc_length != 0)
{
memset(idebufferb, 0, alloc_length);
}
idebufferb[0]=0x80|0x70;