scsi-disk: fix the mode data length field returned by the MODE SENSE command
commit78e70c30612833fd0017cfa5b519bc23df808927
authorBernhard Kohl <bernhard.kohl@nsn.com>
Tue, 31 Aug 2010 09:22:29 +0000 (31 11:22 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Sep 2010 10:39:02 +0000 (8 12:39 +0200)
tree6457c80b660e7d1123c1b4b48dab08a84548d6fe
parent7d631a116ad8fe07001e2cc4c559a06aac82745f
scsi-disk: fix the mode data length field returned by the MODE SENSE command

The MODE DATA LENGTH field indicates the length in bytes of the following
data that is available to be transferred. The mode data length does not include
the number of bytes in the MODE DATA LENGTH field.

Signed-off-by: Bernhard Kohl <bernhard.kohl@nsn.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-disk.c