[RFT PATCH v2 07/42] drivers: pci: host: ftpci100: Fix host bridge memory leakage
From: Linus Walleij <hidden>
Date: 2017-06-16 09:02:13
Also in:
linux-pci
From: Linus Walleij <hidden>
Date: 2017-06-16 09:02:13
Also in:
linux-pci
On Thu, Jun 8, 2017 at 4:13 PM, Lorenzo Pieralisi [off-list ref] 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 <redacted> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Linus Walleij <redacted> Yours, Linus Walleij