vhost: initialize log eventfd context pointer
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Feb 2010 09:23:45 +0000 (11:23 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 28 Feb 2010 17:42:35 +0000 (19:42 +0200)
commit73a99f083009d67d8e12603420e008d5c21b0b7d
tree01937177ec99507ec28b912c0cadebd37f0becdb
parent86e9424d7252bae5ad1c17b4b8088193e6b27cbe
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>
drivers/vhost/vhost.c