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

Commit 75fd9edc authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost: fix zcopy reference counting



Fix get/put refcount imbalance with zero copy,
which caused qemu to hang forever on guest driver unload.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 2723feaa
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1578,7 +1578,6 @@ struct vhost_ubuf_ref *vhost_ubuf_alloc(struct vhost_virtqueue *vq,
	if (!ubufs)
		return ERR_PTR(-ENOMEM);
	kref_init(&ubufs->kref);
	kref_get(&ubufs->kref);
	init_waitqueue_head(&ubufs->wait);
	ubufs->vq = vq;
	return ubufs;