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

Commit 1b88accf authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull virtio bugfix from Michael Tsirkin:
 "A bugfix for error handling in virtio"

* tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
  virtio_ring: fix num_free handling in error case
parents 851710a8 e82df670
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -428,8 +428,6 @@ static inline int virtqueue_add(struct virtqueue *_vq,
		i = virtio16_to_cpu(_vq->vdev, vq->vring.desc[i].next);
	}

	vq->vq.num_free += total_sg;

	if (indirect)
		kfree(desc);