virtio: del net client if net_init_tap_one failed
authorlu zhipeng <luzhipeng@cestc.cn>
Fri, 23 Sep 2022 15:50:46 +0000 (23:50 +0800)
committerJason Wang <jasowang@redhat.com>
Tue, 27 Sep 2022 07:14:37 +0000 (15:14 +0800)
commitbf769f742c3624952f125b303878a77ea870c156
tree50efe2cfd2365da6e047458606fd02578cd9f197
parent72b99a87cebf803b4427297a59b44d090c065eba
virtio: del net client if net_init_tap_one failed

If the net tap initializes successful, but failed during
network card hot-plugging, the net-tap will remains,
so cleanup.

Signed-off-by: lu zhipeng <luzhipeng@cestc.cn>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/tap.c