]> Git Repo - qemu.git/commitdiff
hw/vfio/platform: Init the interrupt mutex
authorEric Auger <[email protected]>
Tue, 6 Feb 2018 18:08:26 +0000 (11:08 -0700)
committerAlex Williamson <[email protected]>
Tue, 6 Feb 2018 18:08:26 +0000 (11:08 -0700)
Add the initialization of the mutex protecting the interrupt list.

Signed-off-by: Eric Auger <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
hw/vfio/platform.c

index da84abf4fc4cca99aba19fd5bc5037e74ab94dfe..0d4bc0aae8891435eec55d9c6aacf4b339a865fe 100644 (file)
@@ -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);
This page took 0.029054 seconds and 4 git commands to generate.