Home
last modified time | relevance | path

Searched hist:"771 b6ed37e3aa188a7485560b949a41c6cf174dc" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/net/
H A Dvirtio-net.cdiff 771b6ed37e3aa188a7485560b949a41c6cf174dc Thu Nov 27 04:04:03 CST 2014 Jason Wang <jasowang@redhat.com> virtio-net: fix unmap leak

virtio_net_handle_ctrl() and other functions that process control vq
request call iov_discard_front() which will shorten the iov. This will
lead unmapping in virtqueue_push() leaks mapping.

Fixes this by keeping the original iov untouched and using a temp variable
in those functions.

Cc: Wen Congyang <wency@cn.fujitsu.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1417082643-23907-1-git-send-email-jasowang@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>