scsi-generic: correct 6-bytes commands transfer length (Laurent Vivier)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 22 Sep 2008 15:30:26 +0000 (15:30 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 22 Sep 2008 15:30:26 +0000 (15:30 +0000)
commit72ecb8d9dd339d8c7f3227b25b98b726e3933ebd
tree40ca935ebf2d717b46c9fb36cd8b73c511ffab32
parent4f26a4867cf09fc486cd68a1e05a018767290260
scsi-generic: correct 6-bytes commands transfer length (Laurent Vivier)

According to SCSI documentation, for 6 bytes commands (READ(6),
WRITE(6)), if transfer length is 0 it specifies 256 blocks.

Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5292 c046a42c-6fe2-441c-8c8c-71466251a162
hw/scsi-generic.c