Skip to content

Commit 7932c0b

Browse files
elmarcomstsirkin
authored andcommitted
vhost: actually track log eventfd file
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: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent cbfe8fa commit 7932c0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: drivers/vhost/vhost.c

+1
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,7 @@ long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp)
995995
}
996996
if (eventfp != d->log_file) {
997997
filep = d->log_file;
998+
d->log_file = eventfp;
998999
ctx = d->log_ctx;
9991000
d->log_ctx = eventfp ?
10001001
eventfd_ctx_fileget(eventfp) : NULL;

0 commit comments

Comments
 (0)