vhostuser: Fix vhostuser file descriptor leak 32/10432/2
authorHaiyang Tan <haiyang.tan.dev@gmail.com>
Tue, 6 Feb 2018 16:16:48 +0000 (11:16 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 8 Feb 2018 20:33:17 +0000 (20:33 +0000)
commit2ae5135e4cc47f5be8895486a91ad98be36dd5dd
treedf317c8f249d3a1ddbf4819d65d2f9363766272f
parentb81831d122d59b55c7d42b39e4fd9e94b7d40aca
vhostuser: Fix vhostuser file descriptor leak

In the case that vhostuser server accepted more than one client connection,
'vui->clib_file_index' will be overwritten directly without release the possible
existed resource, so file descriptor leak occurs

Change-Id: I89d08133dae31a12a815df2631334dbf0aefeb1e
Signed-off-by: Haiyang Tan <haiyang.tan.dev@gmail.com>
src/vnet/devices/virtio/vhost-user.c