vhost: do not update last avail idx on get_vring_base() failure
commit499c557975275dba23fbf8f23880815d019ce663
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 26 Jul 2016 21:15:27 +0000 (27 01:15 +0400)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 29 Jul 2016 02:47:17 +0000 (29 05:47 +0300)
treeb73d31678f2da3f6b44b8bed56fee5873cc7203d
parent950d94ba0671e7f154a9e87a277f8efbddcee28f
vhost: do not update last avail idx on get_vring_base() failure

The state.num value will probably be 0 in this case, but that
doesn't make sense to update.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost.c