diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index 75352efa39..9e92b3558c 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -794,7 +794,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;