diff options
author | Christian Hoff <christian.hoff@de.ibm.com> | 2012-06-14 15:55:25 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-07-02 11:27:00 +0200 |
commit | 335f560f9c7b63ede973d7b9712438f39ee2df61 (patch) | |
tree | 26c1159ffcd8079e3ede753b6b0e5802eea258f5 /hw | |
parent | 619d7ae952bb61ec27ec21fe4a383a8d4dd4cd70 (diff) | |
download | qemu-335f560f9c7b63ede973d7b9712438f39ee2df61.tar.gz qemu-335f560f9c7b63ede973d7b9712438f39ee2df61.tar.bz2 qemu-335f560f9c7b63ede973d7b9712438f39ee2df61.zip |
scsi: Fix data length == SCSI_SENSE_BUF_SIZE
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 <christian.hoff@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-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 14e2f730b8..4e95eee55b 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@ -1389,7 +1389,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; } |