hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/vhost/net.c
....@@ -1517,6 +1517,9 @@
15171517 nvq = &n->vqs[index];
15181518 mutex_lock(&vq->mutex);
15191519
1520
+ if (fd == -1)
1521
+ vhost_clear_msg(&n->dev);
1522
+
15201523 /* Verify that ring has been setup correctly. */
15211524 if (!vhost_vq_access_ok(vq)) {
15221525 r = -EFAULT;