diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-02-15 09:23:50 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-02-24 14:54:51 +0100 |
commit | 9fac25bf6ee6e3291ccb27feb9ad9b63506c7a60 (patch) | |
tree | 405f301c45852d176a88c65816765f5173038d1c /hw/scsi-bus.c | |
parent | 5db1764cc1f6ea18d92935e91c182b5526a392d1 (diff) | |
download | hqemu-9fac25bf6ee6e3291ccb27feb9ad9b63506c7a60.zip hqemu-9fac25bf6ee6e3291ccb27feb9ad9b63506c7a60.tar.gz |
scsi: fix wrong return for target INQUIRY
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi-bus.c')
-rw-r--r-- | hw/scsi-bus.c | 2 |
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); |