diff --git a/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp b/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp
index 87383f0..f77a59e 100644
a
|
b
|
usb_disk_request_sense(device_lun *lun)
|
485 | 485 | TRACE("request_sense: device not ready (asc 0x%02x ascq 0x%02x)\n", |
486 | 486 | parameter.additional_sense_code, |
487 | 487 | parameter.additional_sense_code_qualifier); |
488 | | lun->media_present = false; |
489 | | usb_disk_reset_capacity(lun); |
490 | | return B_DEV_NOT_READY; |
| 488 | if (parameter.additional_sense_code == SCSI_ASC_MEDIUM_NOT_PRESENT) { |
| 489 | lun->media_present = false; |
| 490 | usb_disk_reset_capacity(lun); |
| 491 | return B_DEV_NO_MEDIA; |
| 492 | } |
| 493 | else |
| 494 | return B_DEV_NOT_READY; |
491 | 495 | |
492 | 496 | case SCSI_SENSE_KEY_DATA_PROTECT: |
493 | 497 | TRACE_ALWAYS("request_sense: write protected\n"); |