diff options
| author | Victor Kaplansky | 2015-12-01 17:57:39 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-12-02 18:27:26 +0100 |
| commit | 6d0b908a628a7086fa855c68b217cc1e2a5c4c19 (patch) | |
| tree | 2006fdf4e7d06231d83d8f5afd91b9e7c3edf20d /hw | |
| parent | vhost: drop dead code (diff) | |
| download | qemu-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
