OSDN Git Service

scsi: Ensure command and transfer lengths are set for all SCSI devices
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Jun 2012 14:13:49 +0000 (16:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Jul 2012 09:27:00 +0000 (11:27 +0200)
commit28b70c9dbdce0d517ade9c04c7d7ae05c8b76d2f
tree6c2e8468c635621eea39493a08c84291ef2c3433
parent15e58a21a8f48b6a00081587fa1fa23aa9159dfd
scsi: Ensure command and transfer lengths are set for all SCSI devices

scsi-generic relies on those values to be correct, so it is important that
those values are initialized properly for all device types.

Reported-by: Christian Hoff <christian.hoff@de.ibm.com>
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-bus.c