Skip to content
Commit 71878fa4 authored by Greg Kurz's avatar Greg Kurz Committed by Michael S. Tsirkin
Browse files

vhost: Use vhost_get_used_size() in vhost_vring_set_addr()



The open-coded computation of the used size doesn't take the event
into account when the VIRTIO_RING_F_EVENT_IDX feature is present.
Fix that by using vhost_get_used_size().

Fixes: 8ea8cf89 ("vhost: support event index")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
Link: https://lore.kernel.org/r/160171932300.284610.11846106312938909461.stgit@bahia.lan


Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 0210a8db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment