Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 824044c1 authored by David S. Miller's avatar David S. Miller
Browse files
parents fb0c5f0b 5786aee8
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -858,11 +858,12 @@ int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log,
		if (r < 0)
		if (r < 0)
			return r;
			return r;
		len -= l;
		len -= l;
		if (!len)
		if (!len) {
			return 0;
	}
			if (vq->log_ctx)
			if (vq->log_ctx)
				eventfd_signal(vq->log_ctx, 1);
				eventfd_signal(vq->log_ctx, 1);
			return 0;
		}
	}
	/* Length written exceeds what we have stored. This is a bug. */
	/* Length written exceeds what we have stored. This is a bug. */
	BUG();
	BUG();
	return 0;
	return 0;