Thread (73 messages) 73 messages, 7 authors, 2017-07-19
STALE3240d REVIEWED: 1 (0M)

[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

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help