Re: [PATCH] bus/pci: fix bus info memleak during PCI scan

2022-11-22 Thread David Marchand
On Mon, Nov 21, 2022 at 9:44 AM David Marchand wrote: > > On Fri, Nov 18, 2022 at 2:36 PM Tomasz Zawadzki > wrote: > > > > During pci_scan_one() for devices that were already registered > > the pci_common_set() is called to set some of the fields again. > > > > This resulted in bus_info allocatio

Re: [PATCH] bus/pci: fix bus info memleak during PCI scan

2022-11-21 Thread David Marchand
On Fri, Nov 18, 2022 at 2:36 PM Tomasz Zawadzki wrote: > > During pci_scan_one() for devices that were already registered > the pci_common_set() is called to set some of the fields again. > > This resulted in bus_info allocation leaking, so this patch > ensures they are always freed beforehand. >

[PATCH] bus/pci: fix bus info memleak during PCI scan

2022-11-18 Thread Tomasz Zawadzki
During pci_scan_one() for devices that were already registered the pci_common_set() is called to set some of the fields again. This resulted in bus_info allocation leaking, so this patch ensures they are always freed beforehand. Fixes: 8f4de2dba9b9 ("bus/pci: fill bus specific information") Sign