aboutsummaryrefslogtreecommitdiff
path: root/hw/rdma/vmw/pvrdma_qp_ops.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2020-03-12 11:19:49 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2020-03-16 11:46:11 +0000
commit4ab78b19189a81038e744728ed949d09aa477550 (patch)
tree0991e518dd75257fb71d4098e478b3a849fe62a3 /hw/rdma/vmw/pvrdma_qp_ops.c
parent61c265f0660ee476985808c8aa7915617c44fd53 (diff)
block/io: fix bdrv_co_do_copy_on_readv
Prior to 1143ec5ebf4 it was OK to qemu_iovec_from_buf() from aligned-up buffer to original qiov, as qemu_iovec_from_buf() will stop at qiov end anyway. But after 1143ec5ebf4 we assume that bdrv_co_do_copy_on_readv works on part of original qiov, defined by qiov_offset and bytes. So we must not touch qiov behind qiov_offset+bytes bound. Fix it. Cc: qemu-stable@nongnu.org # v4.2 Fixes: 1143ec5ebf4 Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 20200312081949.5350-1-vsementsov@virtuozzo.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/rdma/vmw/pvrdma_qp_ops.c')
0 files changed, 0 insertions, 0 deletions