|
From: | Jason Wang |
Subject: | Re: [Qemu-devel] [PATCH] vhost-user: delete net client if necessary |
Date: | Tue, 12 Jun 2018 10:11:02 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 2018年06月11日 15:31, linzhecheng wrote:
As qemu_new_net_client create new ncs but error happens later, ncs will be left in global net_clients list, so we need to cleanup them. Signed-off-by: linzhecheng <address@hidden> diff --git a/net/vhost-user.c b/net/vhost-user.c index 608b837175..1c7ee48b60 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -345,6 +345,7 @@ err: s->vhost_user = NULL; } } + qemu_del_net_client(nc0);return -1;}
Can nc0 be NULL here? And please try to use "Fixes:" tag to ease stable maintenance. Thanks
[Prev in Thread] | Current Thread | [Next in Thread] |