Skip to content

Commit b1e06c1

Browse files
committed
Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
Pull vhost fix from Michael Tsirkin: "A single fix for a regression in vhost" * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: vhost: initialize vq->nheads properly
2 parents ffe8ac9 + 6a20f9f commit b1e06c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/vhost/vhost.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ void vhost_dev_init(struct vhost_dev *dev,
615615
vq->log = NULL;
616616
vq->indirect = NULL;
617617
vq->heads = NULL;
618+
vq->nheads = NULL;
618619
vq->dev = dev;
619620
mutex_init(&vq->mutex);
620621
vhost_vq_reset(dev, vq);

0 commit comments

Comments
 (0)