On 27 November 2014 at 10:04, Jason Wang <jasow...@redhat.com> wrote:
> 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 <we...@cn.fujitsu.com>
> Cc: Stefano Stabellini <stefano.stabell...@eu.citrix.com>
> Cc: qemu-sta...@nongnu.org
> Signed-off-by: Jason Wang <jasow...@redhat.com>
> ---
> Changes from V1:
> - Use g_memdup() to simplify codes
> ---
>  hw/net/virtio-net.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Applied to master, thanks.

-- PMM

Reply via email to