diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index 99904a0da7..1c3086c892 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -765,7 +765,7 @@ static int vhost_vdpa_net_handle_ctrl_avail(VhostShadowVirtqueue *svq, } if (*s->status != VIRTIO_NET_OK) { - return VIRTIO_NET_ERR; + goto out; } status = VIRTIO_NET_ERR;