vhost-net: update used ring on backend change
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 20 Jul 2011 10:41:31 +0000 (13:41 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Jul 2011 07:23:31 +0000 (10:23 +0300)
On backend change, we flushed out outstanding skbs
but forgot to update the used ring, so that
done entries were left in the ubuf_info ring.
As a result we lose heads or complete incorrect ones,
crashing the guest or leaking memory.
Fix by updating the used ring.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

No differences found