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:
86e9424
)
vhost: initialize log eventfd context pointer
author
Michael S. Tsirkin
<
[email protected]
>
Tue, 23 Feb 2010 09:23:45 +0000
(11:23 +0200)
committer
Michael S. Tsirkin
<
[email protected]
>
Sun, 28 Feb 2010 17:42:35 +0000
(19:42 +0200)
vq log eventfd context pointer needs to be initialized, otherwise
operation may fail or oops if log is enabled but log eventfd not set by
userspace. When log_ctx for device is created, it is copied to the vq.
This reset was missing.
Reviewed-by: Juan Quintela <
[email protected]
>
Signed-off-by: Michael S. Tsirkin <
[email protected]
>
drivers/vhost/vhost.c
patch
|
blob
|
history
diff --git
a/drivers/vhost/vhost.c
b/drivers/vhost/vhost.c
index db21518f7e8d4a66a5d22cb59c4c217352df2a58..6c31c0c9bbb9fb315d76ea807073eb8526648e3a 100644
(file)
--- a/
drivers/vhost/vhost.c
+++ b/
drivers/vhost/vhost.c
@@
-121,6
+121,7
@@
static void vhost_vq_reset(struct vhost_dev *dev,
vq->kick = NULL;
vq->call_ctx = NULL;
vq->call = NULL;
+ vq->log_ctx = NULL;
}
long vhost_dev_init(struct vhost_dev *dev,