summaryrefslogtreecommitdiffstats
path: root/hw/virtio-net.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin2012-09-24 15:09:30 +0200
committerMichael S. Tsirkin2012-09-28 12:16:27 +0200
commit0cea71a207508c2b8f563b2644ac46009832c8f4 (patch)
tree34dc05b002e841ab4722bfd15516b908d071f26a /hw/virtio-net.c
parentMerge branch 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/... (diff)
downloadqemu-0cea71a207508c2b8f563b2644ac46009832c8f4.tar.gz
qemu-0cea71a207508c2b8f563b2644ac46009832c8f4.tar.xz
qemu-0cea71a207508c2b8f563b2644ac46009832c8f4.zip
virtio: don't mark unaccessed memory as dirty
offset of accessed buffer is calculated using iov_length, so it can exceed accessed len. If that happens math in len - offset wraps around, and size becomes wrong. As real value is 0, so this is harmless but unnecessary. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio-net.c')
0 files changed, 0 insertions, 0 deletions