Message ID | 1339682129-1497-2-git-send-email-borntraeger@de.ibm.com |
---|---|
State | New |
Headers | show |
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; }