Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
vdpa: fix not using CVQ buffer in case of error
Bug introducing when refactoring.  Otherway, the guest never received
the used buffer.

Fixes: be4278b ("vdpa: extract vhost_vdpa_net_cvq_add from vhost_vdpa_net_handle_ctrl_avail")
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20230602173451.1917999-1-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
(cherry picked from commit d45243b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
eugpermar authored and Michael Tokarev committed Jun 26, 2023
1 parent 46fe2de commit d33534a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/vhost-vdpa.c
Expand Up @@ -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;
Expand Down

0 comments on commit d33534a

Please sign in to comment.