[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 16/18] scsi: fix wrong return for target INQUIRY
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH v4 16/18] scsi: fix wrong return for target INQUIRY |
Date: |
Wed, 22 Feb 2012 15:33:54 +0100 |
Signed-off-by: Paolo Bonzini <address@hidden>
---
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);
--
1.7.7.6
- [Qemu-devel] [PATCH v4 09/18] scsi-generic: add migration support, (continued)
- [Qemu-devel] [PATCH v4 09/18] scsi-generic: add migration support, Paolo Bonzini, 2012/02/22
- [Qemu-devel] [PATCH v4 12/18] virtio-scsi: Add basic request processing infrastructure, Paolo Bonzini, 2012/02/22
- [Qemu-devel] [PATCH v4 10/18] scsi-disk: add migration support, Paolo Bonzini, 2012/02/22
- [Qemu-devel] [PATCH v4 11/18] virtio-scsi: Add virtio-scsi stub device, Paolo Bonzini, 2012/02/22
- [Qemu-devel] [PATCH v4 14/18] virtio-scsi: process control queue requests, Paolo Bonzini, 2012/02/22
- [Qemu-devel] [PATCH v4 15/18] virtio-scsi: add migration support, Paolo Bonzini, 2012/02/22
- [Qemu-devel] [PATCH v4 13/18] virtio-scsi: add basic SCSI bus operation, Paolo Bonzini, 2012/02/22
- [Qemu-devel] [PATCH v4 16/18] scsi: fix wrong return for target INQUIRY,
Paolo Bonzini <=
- [Qemu-devel] [PATCH v4 17/18] scsi: fix searching for an empty id, Paolo Bonzini, 2012/02/22
- [Qemu-devel] [PATCH v4 18/18] scsi-block: always use scsi_generic_ops for cache != none, Paolo Bonzini, 2012/02/22
- Re: [Qemu-devel] [PULL v4 00/18] virtio-scsi driver, Anthony Liguori, 2012/02/24