Imported Upstream version 16.11.1
[deb_dpdk.git] / lib / librte_eal / linuxapp / eal / eal_vfio_mp_sync.c
index 00cf919..fb4a2f8 100644 (file)
@@ -301,6 +301,7 @@ vfio_mp_sync_thread(void __rte_unused * arg)
                                vfio_mp_sync_send_request(conn_sock, SOCKET_ERR);
                        else
                                vfio_mp_sync_send_fd(conn_sock, fd);
+                       close(fd);
                        break;
                case SOCKET_REQ_GROUP:
                        /* wait for group number */