vhost-vdpa: fix leaking of vhost_net in vhost_vdpa_add()
commitab36edcfeaa292ca4c49c7ebb505f122ef06f9cc
authorJason Wang <jasowang@redhat.com>
Fri, 3 Sep 2021 09:10:18 +0000 (3 17:10 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 4 Sep 2021 21:34:05 +0000 (4 17:34 -0400)
tree8180d1c2d11f6091d9e16566dae99aa60edd0aeb
parentf47a47e458bc12fbc2dc940ad9bb6cb8199f75bd
vhost-vdpa: fix leaking of vhost_net in vhost_vdpa_add()

Fixes: 1e0a84ea49b68 ("vhost-vdpa: introduce vhost-vdpa net client")
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20210903091031.47303-9-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/vhost-vdpa.c