Message ID | 279f6706-aa10-0d6a-6c7f-6f039524e878@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c index e364410a23..e9c70101a7 100644 --- a/hw/scsi/scsi-bus.c +++ b/hw/scsi/scsi-bus.c @@ -517,7 +517,7 @@ static int32_t scsi_target_send_command(SCSIRequest *req, uint8_t *buf) { SCSITargetReq *r = DO_UPCAST(SCSITargetReq, req, req); - if (req->lun != 0) { + if (req->lun != 0 || buf[0] != INQUIRY) { scsi_req_build_sense(req, SENSE_CODE(LUN_NOT_SUPPORTED)); scsi_req_complete(req, CHECK_CONDITION);