mirror of https://github.com/xemu-project/xemu.git
scsi: fix wrong return for target INQUIRY
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5db1764cc1
commit
9fac25bf6e
|
@ -380,7 +380,7 @@ static bool scsi_target_emulate_inquiry(SCSITargetReq *r)
|
|||
|
||||
/* PAGE CODE == 0 */
|
||||
if (r->req.cmd.xfer < 5) {
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
r->len = MIN(r->req.cmd.xfer, 36);
|
||||
|
|
Loading…
Reference in New Issue