On Thu, Jun 8, 2017 at 4:13 PM, Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx> wrote: > When probing the PCI host controller driver, if an error condition > is trigger the probe function code does not free memory allocated > for the struct pci_host_bridge resulting in memory leakage. > > Move the struct pci_host_bridge allocation over to the respective > devm interface to fix the issue. > > Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx> > Cc: Arnd Bergmann <arnd@xxxxxxxx> > Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Yours, Linus Walleij