db4092276a
The addition of the bus_info field did not account for the fact that the
PCI bus can be scanned multiple times (like for device hotplug and other
uses in SPDK).
Indeed, during pci_scan_one() for devices that were already registered,
the pci_common_set() overwrites the bus_info field, leaking the
previously allocated memory.
Since the bus_info content is fixed for a PCI device, we can simply skip
allocation if dev->bus_info is already set.
Fixes:
|
||
---|---|---|
.. | ||
bsd | ||
linux | ||
windows | ||
bus_pci_driver.h | ||
meson.build | ||
pci_common_uio.c | ||
pci_common.c | ||
pci_params.c | ||
private.h | ||
rte_bus_pci.h | ||
version.map |