Re: [Qemu-devel] [PATCH] tap: delete tap(net client) if net_init_tap_one failed

2018-03-06 Thread Jason Wang
On 2018年03月06日 13:11, linzhecheng wrote: If net_init_tap_one failed but net_tap_fd_init succeeded, we should delete the TAPState *s without vhostforce and has_vhostforce flag. Signed-off-by: linzhecheng Applied and queued for stable. Thanks diff --git a/net/tap.c b/net/tap.c index 2b3a3

[Qemu-devel] [PATCH] tap: delete tap(net client) if net_init_tap_one failed

2018-03-05 Thread linzhecheng
If net_init_tap_one failed but net_tap_fd_init succeeded, we should delete the TAPState *s without vhostforce and has_vhostforce flag. Signed-off-by: linzhecheng diff --git a/net/tap.c b/net/tap.c index 2b3a36f9b5..1cb8eaf31f 100644 --- a/net/tap.c +++ b/net/tap.c @@ -651,7 +651,7 @@ static void