[PATCH] bus/pci: fix bus info memleak during PCI scan
David Marchand
david.marchand at redhat.com
Tue Nov 22 10:30:45 CET 2022
On Mon, Nov 21, 2022 at 9:44 AM David Marchand
<david.marchand at redhat.com> wrote:
>
> On Fri, Nov 18, 2022 at 2:36 PM Tomasz Zawadzki
> <tomasz.zawadzki at intel.com> 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.
> >
> > Fixes: 8f4de2dba9b9 ("bus/pci: fill bus specific information")
> >
> > Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki at intel.com>
I sent https://patchwork.dpdk.org/project/dpdk/patch/20221121111209.2396341-1-david.marchand@redhat.com/
as an alternative.
Can you have a look?
Thanks.
--
David Marchand
More information about the dev
mailing list