[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 771b6e: virtio-net: fix unmap leak
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] 771b6e: virtio-net: fix unmap leak |
Date: |
Fri, 28 Nov 2014 05:30:06 -0800 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 771b6ed37e3aa188a7485560b949a41c6cf174dc
https://github.com/qemu/qemu/commit/771b6ed37e3aa188a7485560b949a41c6cf174dc
Author: Jason Wang <address@hidden>
Date: 2014-11-28 (Fri, 28 Nov 2014)
Changed paths:
M hw/net/virtio-net.c
Log Message:
-----------
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 <address@hidden>
Cc: Stefano Stabellini <address@hidden>
Cc: address@hidden
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Stefano Stabellini <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] 771b6e: virtio-net: fix unmap leak,
GitHub <=