Re: [PATCH] ARM64: PCI: Fix struct acpi_pci_root_ops allocation failure path

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

 



On Mon, May 22, 2017 at 04:48:28PM +0100, Lorenzo Pieralisi wrote:
> From: Timmy Li <lixiaoping3@xxxxxxxxxx>
> 
> Commit 093d24a20442 ("arm64: PCI: Manage controller-specific data on
> per-controller basis") added code to allocate ACPI PCI root_ops
> dynamically on a per host bridge basis but failed to update the
> corresponding memory allocation failure path in pci_acpi_scan_root()
> leading to a potential memory leakage.
> 
> Fix it by adding the required kfree call.
> 
> Fixes: 093d24a20442 ("arm64: PCI: Manage controller-specific data on per-controller basis")
> Signed-off-by: Timmy Li <lixiaoping3@xxxxxxxxxx>
> [lorenzo.pieralisi@xxxxxxx: refactored code, rewrote commit log]
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>
> CC: Will Deacon <will.deacon@xxxxxxx>
> CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
> Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
> Cc: Tomasz Nowicki <tn@xxxxxxxxxxxx>

I queued the patch for 4.12. Thanks.

-- 
Catalin



[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