summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc
diff options
context:
space:
mode:
authorVictor Kaplansky <victork@redhat.com>2015-12-01 18:57:39 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-12-02 19:27:26 +0200
commit6d0b908a628a7086fa855c68b217cc1e2a5c4c19 (patch)
tree2006fdf4e7d06231d83d8f5afd91b9e7c3edf20d /include/hw/ppc
parentb0ae1536c5248bc5f0f4472b8020a7a9d2ef9293 (diff)
downloadhqemu-6d0b908a628a7086fa855c68b217cc1e2a5c4c19.zip
hqemu-6d0b908a628a7086fa855c68b217cc1e2a5c4c19.tar.gz
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 'include/hw/ppc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud