[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/5] scsi: Fix data length == SCSI_SENSE_BUF_SIZE
From: |
Christian Borntraeger |
Subject: |
[Qemu-devel] [PATCH 1/5] scsi: Fix data length == SCSI_SENSE_BUF_SIZE |
Date: |
Thu, 14 Jun 2012 15:55:25 +0200 |
From: Christian Hoff <address@hidden>
Fix the edge case where the sense data length is exactly the same
as SCSI_SENSE_BUF_SIZE.
This makes SCSI requests work that use all of the available 95 byte
sense data.
Signed-off-by: Christian Hoff <address@hidden>
Signed-off-by: Christian Borntraeger <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 64e709e..d1779a2 100644
--- a/hw/scsi-bus.c
+++ b/hw/scsi-bus.c
@@ -1295,7 +1295,7 @@ void scsi_req_complete(SCSIRequest *req, int status)
assert(req->status == -1);
req->status = status;
- assert(req->sense_len < sizeof(req->sense));
+ assert(req->sense_len <= sizeof(req->sense));
if (status == GOOD) {
req->sense_len = 0;
}
--
1.7.0.4
- [Qemu-devel] [PATCH 0/5] scsi related fixes, Christian Borntraeger, 2012/06/14
- [Qemu-devel] [PATCH 3/5] scsi: Add basic support for SCSI media changer commands., Christian Borntraeger, 2012/06/14
- [Qemu-devel] [PATCH 4/5] scsi: Fix transfer length for READ POSITION commands., Christian Borntraeger, 2012/06/14
- [Qemu-devel] [PATCH 1/5] scsi: Fix data length == SCSI_SENSE_BUF_SIZE,
Christian Borntraeger <=
- [Qemu-devel] [PATCH 5/5] scsi: Ensure command and transfer lengths are set for all SCSI stream commands., Christian Borntraeger, 2012/06/14
- [Qemu-devel] [PATCH 2/5] scsi: Fix LOAD_UNLOAD, Christian Borntraeger, 2012/06/14
- Re: [Qemu-devel] [PATCH 0/5] scsi related fixes, Paolo Bonzini, 2012/06/14