projects/linux·commit b1e06c19

Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost

b1e06c19 · Linus Torvalds <[email protected]> · 2025-08-08 06:54:23 +03:00

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
Commit
b1e06c19abd2efbdd080047b2e70195c04ac2139
Parents
ffe8ac92 · 6a20f9fc

Merge commit. Changes below are compared with the first parent: ffe8ac92.

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/vhost/vhost.cmodified+1−0View file

drivers/vhost/vhost.c

View file
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 23286e4..8570fdf 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -615,6 +615,7 @@ void vhost_dev_init(struct vhost_dev *dev,
vq->log = NULL;
vq->indirect = NULL;
vq->heads = NULL;
+ vq->nheads = NULL;
vq->dev = dev;
mutex_init(&vq->mutex);
vhost_vq_reset(dev, vq);