Message ID | 157073488735.23153.15612488542845648378.stgit@gimli.home |
---|---|
State | New |
Headers | show |
Series | [PULL,1/1] hw/vfio/pci: fix double free in vfio_msi_disable | expand |
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index c5e6fe61cb3e..12fac3980465 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -651,6 +651,7 @@ retry: } g_free(vdev->msi_vectors); + vdev->msi_vectors = NULL; if (ret > 0 && ret != vdev->nr_vectors) { vdev->nr_vectors = ret;