qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 1/2] vhost-user: release chardev on cleanup


From: marcandre . lureau
Subject: [Qemu-devel] [PATCH 1/2] vhost-user: release chardev on cleanup
Date: Wed, 6 Apr 2016 17:38:47 +0200

From: Marc-André Lureau <address@hidden>

On init, vhost-user does qemu_chr_fe_claim_no_fail(). Do the opposite on
cleanup to allow removing or reusing the chardev.

Signed-off-by: Marc-André Lureau <address@hidden>
---
 net/vhost-user.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/vhost-user.c b/net/vhost-user.c
index 1b9e73a..29fe097 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -142,6 +142,8 @@ static void vhost_user_cleanup(NetClientState *nc)
     }
 
     qemu_purge_queued_packets(nc);
+
+    qemu_chr_fe_release(s->chr);
 }
 
 static bool vhost_user_has_vnet_hdr(NetClientState *nc)
-- 
2.5.5




reply via email to

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