diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-07-17 15:32:03 +0200 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-08-27 13:25:50 -0400 |
commit | f9a59d88f99c3149013e44d1aa9245e67c49a800 (patch) | |
tree | 6e0fd6bb90e1585fe515ea5218bc4260aecc102f | |
parent | d52f73d1c36d9429f895306403b852980e2632ef (diff) |
vhost: actually track log eventfd file
[ Upstream commit 7932c0bd7740f4cd2aa168d3ce0199e7af7d72d5 ]
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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
-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 c90f4374442a..1fe2c8115be0 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -882,6 +882,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; |