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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user