]> git.ipfire.org Git - thirdparty/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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 11 Jul 2018 16:48:20 +0000 (11:48 -0500)
commitfb7f173c2cc4b1f03bdc88845fac9d7f3ec869d0
tree80dada377386f9e7490ab723e269666c19fc55e4
parent2f2b1892350251b2dc98a2baea5a626f7f531c40
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>
(cherry picked from commit c67daf4a24442d1bb404a11a6a54dc45ea10f234)
 Conflicts:
net/vhost-user.c
* drop functional dep on 4d0cf552
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
net/vhost-user.c