scsi: Fix data length == SCSI_SENSE_BUF_SIZE
authorChristian Hoff <christian.hoff@de.ibm.com>
Thu, 14 Jun 2012 13:55:25 +0000 (15:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Jul 2012 09:27:00 +0000 (11:27 +0200)
commit335f560f9c7b63ede973d7b9712438f39ee2df61
tree26c1159ffcd8079e3ede753b6b0e5802eea258f5
parent619d7ae952bb61ec27ec21fe4a383a8d4dd4cd70
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>
hw/scsi-bus.c