Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Marc-André Lureau and committed by
Michael S. Tsirkin
7932c0bd cbfe8fa6

+1
+1
drivers/vhost/vhost.c
··· 995 995 } 996 996 if (eventfp != d->log_file) { 997 997 filep = d->log_file; 998 + d->log_file = eventfp; 998 999 ctx = d->log_ctx; 999 1000 d->log_ctx = eventfp ? 1000 1001 eventfd_ctx_fileget(eventfp) : NULL;