summaryrefslogtreecommitdiffstats
path: root/drivers/platform/goldfish
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2016-06-07 00:07:59 +0200
committerMichael S. Tsirkin <mst@redhat.com>2016-08-23 16:16:57 +0200
commita77ec83a57890240c546df00ca5df1cdeedb1cc3 (patch)
treefe37edca9e7e94664939a1e6ad3605501d55ccf7 /drivers/platform/goldfish
parentLinux 4.8-rc3 (diff)
downloadlinux-a77ec83a57890240c546df00ca5df1cdeedb1cc3.tar.xz
linux-a77ec83a57890240c546df00ca5df1cdeedb1cc3.zip
vhost/scsi: fix reuse of &vq->iov[out] in response
The address of the iovec &vq->iov[out] is not guaranteed to contain the scsi command's response iovec throughout the lifetime of the command. Rather, it is more likely to contain an iovec from an immediately following command after looping back around to vhost_get_vq_desc(). Pass along the iovec entirely instead. Fixes: 79c14141a487 ("vhost/scsi: Convert completion path to use copy_to_iter") Cc: stable@vger.kernel.org Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/platform/goldfish')
0 files changed, 0 insertions, 0 deletions