[PATCH v2] vhost: fix crash on vhost-user client port deletion

2023-05-11 Thread suntianyuan
find conn, then execute vhost_user_socket_mem_free vhost_user_client_reconnect access invalid mem, crash Signed-off-by: suntianyuan --- v2: * Fixed coding style issues. lib/vhost/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vhost/socket.c b/lib/vhost

[PATCH] vhost: fix crash on vhost-user client port deletion

2023-03-20 Thread suntianyuan
find conn, then excute vhost_user_socket_mem_free vhost_user_client_reconnect access invalid mem, crash Signed-off-by: suntianyuan --- lib/vhost/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vhost/socket.c b/lib/vhost/socket.c index 669c322e12..72c776d15c