mirror of
https://git.proxmox.com/git/qemu
synced 2025-07-09 13:18:26 +00:00
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 */
|
/* PAGE CODE == 0 */
|
||||||
if (r->req.cmd.xfer < 5) {
|
if (r->req.cmd.xfer < 5) {
|
||||||
return -1;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
r->len = MIN(r->req.cmd.xfer, 36);
|
r->len = MIN(r->req.cmd.xfer, 36);
|
||||||
|
Loading…
Reference in New Issue
Block a user