virtio: fix error handling for debug builds
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Aug 2016 04:18:51 +0000 (07:18 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Aug 2016 10:42:35 +0000 (13:42 +0300)
commit3cc36f6e34bd2d92d23be7b598ba5e639c47b01a
tree8fcb616fee42ce6fb470e8fbe0d03c6baf361894
parent58625edf9e2515ed41dac2a24fa8004030a87b87
virtio: fix error handling for debug builds

On error, virtqueue_add calls START_USE but not
END_USE. Thankfully that's normally empty anyway,
but might not be when debugging. Fix it up.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_ring.c