qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] vhost-user: delete net client if necessary


From: linzhecheng
Subject: [Qemu-devel] [PATCH] vhost-user: delete net client if necessary
Date: Mon, 11 Jun 2018 15:31:51 +0800

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;
 }
-- 
2.12.2.windows.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]