]> 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>
Thu, 21 Jun 2018 01:45:07 +0000 (20:45 -0500)
commitd8a919ffc7d9a195537cf4d12afa52e12babaf7f
tree019cd9c0b35d2dba8f5cb7d9ec2bd92e0a28cffc
parentf4e93bbd2e50f3762bd98a2422ef647e6a29df6b
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