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

Commit f9a59d88 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Sasha Levin
Browse files

vhost: actually track log eventfd file



[ Upstream commit 7932c0bd7740f4cd2aa168d3ce0199e7af7d72d5 ]

While reviewing vhost log code, I found out that log_file is never
set. Note: I haven't tested the change (QEMU doesn't use LOG_FD yet).

Cc: stable@vger.kernel.org
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent d52f73d1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -882,6 +882,7 @@ long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp)
		}
		if (eventfp != d->log_file) {
			filep = d->log_file;
			d->log_file = eventfp;
			ctx = d->log_ctx;
			d->log_ctx = eventfp ?
				eventfd_ctx_fileget(eventfp) : NULL;