summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/vhost/vhost.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/vhost/vhost.c')
-rw-r--r--kernel/drivers/vhost/vhost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/drivers/vhost/vhost.c b/kernel/drivers/vhost/vhost.c
index 2ee28266f..fa49d3294 100644
--- a/kernel/drivers/vhost/vhost.c
+++ b/kernel/drivers/vhost/vhost.c
@@ -886,6 +886,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;