hw/vfio/platform: Init the interrupt mutex
Add the initialization of the mutex protecting the interrupt list. Signed-off-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
89d5202edc
commit
89202c6fa8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user