forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
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;