kernel/drivers/vhost/net.c
.. .. @@ -1517,6 +1517,9 @@ 1517 1517 nvq = &n->vqs[index]; 1518 1518 mutex_lock(&vq->mutex); 1519 1519 1520 + if (fd == -1)1521 + vhost_clear_msg(&n->dev);1522 +1520 1523 /* Verify that ring has been setup correctly. */ 1521 1524 if (!vhost_vq_access_ok(vq)) { 1522 1525 r = -EFAULT;