SCSI: Handle inquiry commands of varying length (Justin Chevrier).
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 7 Dec 2008 03:12:54 +0000 (03:12 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 7 Dec 2008 03:12:54 +0000 (03:12 +0000)
commit575750581c6ea70e89a7889cb6028f234f9d2ee9
tree3b595e29478c37bb2f527905ca0b58fc25bbd3aa
parent02b373ad5dba03fda5d8b58abe30e360f1f6f0fa
SCSI: Handle inquiry commands of varying length (Justin Chevrier).

Openserver 5.0.5 sends an Inquiry command to the emulated SCSI disk
expecting a response length of 40 bytes. Currently the response to an
Inquiry command is hardcoded to 36 bytes. When receiving a response of
length 36 instead of 40 Openserver panics.

Modifications to original patch based on feedback from Ryan Harper and Paul
Brook. Thanks guys.

Signed-off-by: Justin Chevrier <address@hidden>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5903 c046a42c-6fe2-441c-8c8c-71466251a162
hw/scsi-disk.c