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: NMarc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: NMichael S. Tsirkin <mst@redhat.com> Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
Showing
想要评论请 注册 或 登录