Skip to content

Commit 1b88acc

Browse files
committed
Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
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
2 parents 851710a + e82df67 commit 1b88acc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/virtio/virtio_ring.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,6 @@ static inline int virtqueue_add(struct virtqueue *_vq,
428428
i = virtio16_to_cpu(_vq->vdev, vq->vring.desc[i].next);
429429
}
430430

431-
vq->vq.num_free += total_sg;
432-
433431
if (indirect)
434432
kfree(desc);
435433

0 commit comments

Comments
 (0)