Re: [RFT PATCH v2 07/42] drivers: pci: host: ftpci100: Fix host bridge memory leakage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux