Don't try to do another request sense if the failing operation already was a
request sense. Otherwise we can easily run into an infinite recursion. Should fix #8022. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42840 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e436a27e5f
commit
9f6dd24974
|
@ -386,6 +386,9 @@ usb_disk_operation(device_lun *lun, uint8 operation, uint8 opLength,
|
|||
// the operation is complete and has succeeded
|
||||
return B_OK;
|
||||
} else {
|
||||
if (operation == SCSI_REQUEST_SENSE_6)
|
||||
return B_ERROR;
|
||||
|
||||
// the operation is complete but has failed at the SCSI level
|
||||
if (operation != SCSI_TEST_UNIT_READY_6) {
|
||||
TRACE_ALWAYS("operation 0x%02x failed at the SCSI level\n",
|
||||
|
|
Loading…
Reference in New Issue