vhost/scsi: fix up req type endian-ness
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 10 Jul 2020 10:36:16 +0000 (06:36 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 29 Jul 2020 17:24:30 +0000 (13:24 -0400)
commit295c1b9852d000580786375304a9800bd9634d15
tree157d7f9c6b92fb07fdd00813a1307535b317dab1
parentfe3c60684377d5ad9b0569b87ed3e26e12c8173b
vhost/scsi: fix up req type endian-ness

vhost/scsi doesn't handle type conversion correctly
for request type when using virtio 1.0 and up for BE,
or cross-endian platforms.

Fix it up using vhost_32_to_cpu.

Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
drivers/vhost/scsi.c