Skip to contentSkip to conversation

hw/vfio/platform: Init the interrupt mutex

PATCH New Eric Auger 1 participant 1 message Jan 19, 2018

lore
Share & tools
lore

Eric Auger

author
#0 lore raw

PATCH 1/1 hw/vfio/platform: Init the interrupt mutex

Add the initialization of the mutex protecting the interrupt list.

---
 hw/vfio/platform.c | 2 ++
 1 file changed, 2 insertions(+)
hw/vfio/platform.c +2 -0
index da84abf..0d4bc0a 100644
@@ -643,6 +643,8 @@ static void vfio_platform_realize(DeviceState *dev, Error **errp)
     vbasedev->dev = dev;
     vbasedev->ops = &vfio_platform_ops;
 
+    qemu_mutex_init(&vdev->intp_mutex);
+
     trace_vfio_platform_realize(vbasedev->sysfsdev ?
                                 vbasedev->sysfsdev : vbasedev->name,
                                 vdev->compat);
Signature · 1 line
1.9.1