]> git.proxmox.com Git - mirror_qemu.git/commit
vhost-user: delete net client if necessary
authorlinzhecheng <linzhecheng@huawei.com>
Tue, 12 Jun 2018 02:24:45 +0000 (10:24 +0800)
committerJason Wang <jasowang@redhat.com>
Fri, 15 Jun 2018 02:39:53 +0000 (10:39 +0800)
commitc67daf4a24442d1bb404a11a6a54dc45ea10f234
tree076c5367d214228c7344bd08cf16e5aa3fb1ad4d
parent2285a00c113469bb3e750ca4921cdb7baaae9e25
vhost-user: delete net client if necessary

As qemu_new_net_client create new ncs but error happens later,
ncs will be left in global net_clients list and we can't use them any
more, so we need to cleanup them.

Cc: qemu-stable@nongnu.org
Signed-off-by: linzhecheng <linzhecheng@huawei.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/vhost-user.c