Message ID | 157410280915.24655.2269183247539766479.stgit@gimli.home |
---|---|
State | New |
Headers | show |
Series | [PULL,1/3] hw/vfio/pci: Fix double free of migration_blocker | expand |
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 9c165995df32..0c55883bba77 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -2737,7 +2737,7 @@ static void vfio_realize(PCIDevice *pdev, Error **errp) error_setg(&vdev->migration_blocker, "VFIO device doesn't support migration"); ret = migrate_add_blocker(vdev->migration_blocker, &err); - if (err) { + if (ret) { error_propagate(errp, err); error_free(vdev->migration_blocker); vdev->migration_blocker = NULL;