Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -428,6 +428,7 @@ static inline int virtqueue_add(struct virtqueue *_vq,
	if (indirect)
		kfree(desc);

	END_USE(vq);
	return -EIO;
}