OSDN Git Service

virtio-scsi: don't let virtio core to validate used buffer length
authorJason Wang <jasowang@redhat.com>
Wed, 27 Oct 2021 02:21:07 +0000 (10:21 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 09:26:49 +0000 (05:26 -0400)
commitc57911ebfbfe745cb95da2bcf547c5bae000590f
tree24600d287dc71ab8da023c09dfa0311914239cb3
parenta40392edf1b2c7822bc0ce68413106661a9d4232
virtio-scsi: don't let virtio core to validate used buffer length

We never tries to use used length, so the patch prevents the virtio
core from validating used length.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20211027022107.14357-5-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/scsi/virtio_scsi.c