virtio-scsi: fix cdb/sense size
commit03325525c3a607825ab67bf36bffaa5cf8447df2
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Mar 2015 13:31:29 +0000 (11 14:31 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Mar 2015 17:24:29 +0000 (11 18:24 +0100)
tree07bd152f6cadbd53aee93b3d9d5bd56231304a79
parent2106ba30105969262a7810417a57524d9a225b91
virtio-scsi: fix cdb/sense size

Commit "virtio-scsi: use standard-headers" added
cdb and sense into req/rep structures, which
breaks uses of sizeof for these structures,
since qemu adds its own arrays on top.

To fix, redefine CDB/sense field size to 0.

Reported-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/scsi/virtio-scsi.c
include/hw/virtio/virtio-scsi.h