Message ID | 20171214101435.26265-5-hare@suse.de |
---|---|
State | New |
Headers | show |
Series | virtio-vfc implementation | expand |
diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c index 83497ac916..67ac472c14 100644 --- a/hw/scsi/scsi-bus.c +++ b/hw/scsi/scsi-bus.c @@ -548,7 +548,7 @@ static int32_t scsi_target_send_command(SCSIRequest *req, uint8_t *buf) int fixed_sense = (req->cmd.buf[1] & 1) == 0; if (req->lun != 0 && - buf[0] != INQUIRY && buf[0] != REQUEST_SENSE) { + buf[0] != INQUIRY && buf[0] != REQUEST_SENSE && buf[0] != REPORT_LUNS) { scsi_req_build_sense(req, SENSE_CODE(LUN_NOT_SUPPORTED)); scsi_req_complete(req, CHECK_CONDITION); return 0;
SPC doesn't restrict the use of REPORT LUNS to LUN 0, so we shouldn't be doing so, either. Signed-off-by: Hannes Reinecke <hare@suse.com> --- hw/scsi/scsi-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)