SCSI: INQUIRY fullsize is additional-length + 5, not +3

This bug would report the standard inquiry data size two bytes less than expected
This commit is contained in:
Ronnie Sahlberg
2012-09-12 07:07:04 -07:00
parent dd006029a2
commit ead085ecd0

View File

@@ -437,7 +437,7 @@ static int
scsi_inquiry_datain_getfullsize(struct scsi_task *task)
{
if (task->params.inquiry.evpd == 0) {
return task->datain.data[4] + 3;
return task->datain.data[4] + 5;
}
switch (task->params.inquiry.page_code) {