Skip to content
Commit d5675bd2 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost: break out of polling loop on error



When ring parsing fails, we currently handle this
as ring empty condition. This means that we enable
kicks and recheck ring empty: if this not empty,
we re-start polling which of course will fail again.

Instead, let's return a negative error code and stop polling.

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