projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbfe8fa
)
vhost: actually track log eventfd file
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Fri, 17 Jul 2015 13:32:03 +0000
(15:32 +0200)
committer
Michael S. Tsirkin
<mst@redhat.com>
Mon, 27 Jul 2015 15:04:58 +0000
(18:04 +0300)
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>
drivers/vhost/vhost.c
patch
|
blob
|
history
diff --git
a/drivers/vhost/vhost.c
b/drivers/vhost/vhost.c
index a9fe859f43c874b39d6a2e7f8bb884abe1b16736..95bdb90fd7f06a13a99e2d37a2c97aabc4545c05 100644
(file)
--- 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)
}
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;