mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
e4c3401a33
In case the virtio descriptor is pulled out of the Queue iterator, it is important to fill it and tag it as used. This is already done from the successful code path, but in case there's an error during the filling, we should make sure to put the descriptor back in the list of available descriptors. This way, when the error occurs, we don't loose a descriptor, and it could be used later. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>