summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorVictor Kaplansky2015-12-01 17:57:39 +0100
committerMichael S. Tsirkin2015-12-02 18:27:26 +0100
commit6d0b908a628a7086fa855c68b217cc1e2a5c4c19 (patch)
tree2006fdf4e7d06231d83d8f5afd91b9e7c3edf20d /hw
parentvhost: drop dead code (diff)
downloadqemu-6d0b908a628a7086fa855c68b217cc1e2a5c4c19.tar.gz
qemu-6d0b908a628a7086fa855c68b217cc1e2a5c4c19.tar.xz
qemu-6d0b908a628a7086fa855c68b217cc1e2a5c4c19.zip
tests/vhost-user-bridge.c: fix fd leakage
This fixes file descriptor leakage in vhost-user-bridge application. Whenever a new callfd or kickfd is set, the previous one should be explicitly closed. File descriptors used to map guest's memory are closed immediately after mmap call. Signed-off-by: Victor Kaplansky <victork@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions