vhost: actually track log eventfd file
[firefly-linux-kernel-4.4.55.git] / drivers / vhost / vhost.c
index a9fe859f43c874b39d6a2e7f8bb884abe1b16736..95bdb90fd7f06a13a99e2d37a2c97aabc4545c05 100644 (file)
@@ -995,6 +995,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;