aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-02-15 09:23:50 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-02-24 14:54:51 +0100
commit9fac25bf6ee6e3291ccb27feb9ad9b63506c7a60 (patch)
tree405f301c45852d176a88c65816765f5173038d1c /hw
parent5db1764cc1f6ea18d92935e91c182b5526a392d1 (diff)
downloadqemu-9fac25bf6ee6e3291ccb27feb9ad9b63506c7a60.zip
qemu-9fac25bf6ee6e3291ccb27feb9ad9b63506c7a60.tar.gz
qemu-9fac25bf6ee6e3291ccb27feb9ad9b63506c7a60.tar.bz2
scsi: fix wrong return for target INQUIRY
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/scsi-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
index f0babb1..2cf2f0d 100644
--- a/hw/scsi-bus.c
+++ b/hw/scsi-bus.c
@@ -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);