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>
This commit is contained in:
Michael S. Tsirkin 2016-08-03 07:18:51 +03:00
Родитель 58625edf9e
Коммит 3cc36f6e34
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -428,6 +428,7 @@ unmap_release:
if (indirect)
kfree(desc);
END_USE(vq);
return -EIO;
}