diff options
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/vhost.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index a9fe859f43c8..95bdb90fd7f0 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c | |||
@@ -995,6 +995,7 @@ long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp) | |||
995 | } | 995 | } |
996 | if (eventfp != d->log_file) { | 996 | if (eventfp != d->log_file) { |
997 | filep = d->log_file; | 997 | filep = d->log_file; |
998 | d->log_file = eventfp; | ||
998 | ctx = d->log_ctx; | 999 | ctx = d->log_ctx; |
999 | d->log_ctx = eventfp ? | 1000 | d->log_ctx = eventfp ? |
1000 | eventfd_ctx_fileget(eventfp) : NULL; | 1001 | eventfd_ctx_fileget(eventfp) : NULL; |