diff options
author | Victor Kaplansky <victork@redhat.com> | 2015-12-01 18:57:39 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-12-02 19:27:26 +0200 |
commit | 6d0b908a628a7086fa855c68b217cc1e2a5c4c19 (patch) | |
tree | 2006fdf4e7d06231d83d8f5afd91b9e7c3edf20d /cpu-exec.c | |
parent | b0ae1536c5248bc5f0f4472b8020a7a9d2ef9293 (diff) | |
download | qemu-6d0b908a628a7086fa855c68b217cc1e2a5c4c19.zip qemu-6d0b908a628a7086fa855c68b217cc1e2a5c4c19.tar.gz qemu-6d0b908a628a7086fa855c68b217cc1e2a5c4c19.tar.bz2 |
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 'cpu-exec.c')
0 files changed, 0 insertions, 0 deletions