Commit 3cc36f6e authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

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: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 58625edf
......@@ -428,6 +428,7 @@ static inline int virtqueue_add(struct virtqueue *_vq,
if (indirect)
kfree(desc);
END_USE(vq);
return -EIO;
}
......
Markdown is supported
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