diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-02-23 11:23:45 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-02-28 19:42:35 +0200 |
commit | 73a99f083009d67d8e12603420e008d5c21b0b7d (patch) | |
tree | 01937177ec99507ec28b912c0cadebd37f0becdb /drivers/vhost | |
parent | 86e9424d7252bae5ad1c17b4b8088193e6b27cbe (diff) | |
download | kernel_goldelico_gta04-73a99f083009d67d8e12603420e008d5c21b0b7d.zip kernel_goldelico_gta04-73a99f083009d67d8e12603420e008d5c21b0b7d.tar.gz kernel_goldelico_gta04-73a99f083009d67d8e12603420e008d5c21b0b7d.tar.bz2 |
vhost: initialize log eventfd context pointer
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 <quintela@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 db21518..6c31c0c 100644 --- 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, |