Message ID | 1441155344-23369-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 69068e0..384bcc8 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -878,6 +878,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;