return;
}
- if (VIR_ALLOC_QUIET(iommuGroup) < 0)
- ABORT_OOM();
-
+ iommuGroup = g_new0(struct pciIommuGroup, 1);
iommuGroup->iommu = dev->iommuGroup;
iommuGroup->nDevicesBoundToVFIO = 0; /* No device bound to VFIO by default */
c = strchr(c, ':');
}
- if (VIR_ALLOC_QUIET(dev) < 0)
- ABORT_OOM();
+ dev = g_new0(struct pciDevice, 1);
configSrc = g_strdup_printf("%s/virpcitestdata/%s.config", abs_srcdir, id);
int vendor, device;
g_autofree char *driverpath = NULL;
- if (VIR_ALLOC_QUIET(driver) < 0)
- ABORT_OOM();
+ driver = g_new0(struct pciDriver, 1);
driver->name = g_strdup(name);
if (!(driverpath = pci_driver_get_path(driver, NULL, true)))
ABORT_OOM();