Re: [PATCH] bus/pci: fix leak with multiple bus scan

2022-11-22 Thread David Marchand
On Mon, Nov 21, 2022 at 12:12 PM David Marchand wrote: > > 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,

[PATCH] bus/pci: fix leak with multiple bus scan

2022-11-21 Thread David Marchand
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 pr