diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-07-17 09:32:03 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-07-27 11:04:58 -0400 |
commit | 7932c0bd7740f4cd2aa168d3ce0199e7af7d72d5 (patch) | |
tree | a1524c512ee91171559c6c7d3414dc96d90ad69d /drivers/vhost | |
parent | cbfe8fa6cd672011c755c3cd85c9ffd4e2d10a6f (diff) |
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>
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; |