scsi: fix wrong return for target INQUIRY

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2012-02-15 09:23:50 +01:00
parent 5db1764cc1
commit 9fac25bf6e

View File

@ -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);