android_kernel_oneplus_msm8998/drivers/pci/host
Johan Hovold 7de85e493a PCI: keystone: Fix interrupt-controller-node lookup
commit eac56aa3bc8af3d9b9850345d0f2da9d83529134 upstream.

Fix child-node lookup during initialisation which was using the wrong
OF-helper and ended up searching the whole device tree depth-first
starting at the parent rather than just matching on its children.

To make things worse, the parent pci node could end up being prematurely
freed as of_find_node_by_name() drops a reference to its first argument.
Any matching child interrupt-controller node was also leaked.

Fixes: 0c4ffcfe1f ("PCI: keystone: Add TI Keystone PCIe driver")
Cc: stable <stable@vger.kernel.org>     # 3.18
Acked-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
[lorenzo.pieralisi@arm.com: updated commit subject]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
[johan: backport to 4.4]
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-28 10:17:21 +01:00
..
Kconfig PCI: dra7xx: Mark driver as broken 2016-01-08 09:58:31 -06:00
Makefile Merge branch 'pci/host-hisi' into next 2015-11-03 08:39:19 -06:00
pci-dra7xx.c PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD 2016-02-17 12:30:56 -08:00
pci-exynos.c PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD 2016-02-17 12:30:56 -08:00
pci-host-generic.c PCI: generic: Fix address window calculation for non-zero starting bus 2015-10-09 18:18:35 -05:00
pci-imx6.c PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD 2016-02-17 12:30:56 -08:00
pci-keystone-dw.c PCI: keystone: Fix MSI code that retrieves struct pcie_port pointer 2016-03-09 15:34:49 -08:00
pci-keystone.c PCI: keystone: Fix interrupt-controller-node lookup 2018-02-28 10:17:21 +01:00
pci-keystone.h PCI: designware: Make get_msi_addr() return phys_addr_t, not u32 2015-09-18 13:58:35 -05:00
pci-layerscape.c PCI: layerscape: Fix MSG TLP drop setting 2018-01-31 12:06:08 +01:00
pci-mvebu.c PCI: mvebu: Handle changes to the bridge windows while enabled 2017-11-15 17:13:09 +01:00
pci-rcar-gen2.c PCI: rcar: Add R8A7794 support 2015-09-24 17:06:32 -05:00
pci-tegra.c PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD 2016-02-17 12:30:56 -08:00
pci-versatile.c
pci-xgene-msi.c irqdomain/msi: Use fwnode instead of of_node 2015-10-13 19:01:25 +02:00
pci-xgene.c PCI/MSI: xgene: Remove msi_controller assignment 2015-09-25 18:24:28 -05:00
pcie-altera-msi.c PCI changes for the v4.4 merge window: 2015-11-06 11:29:53 -08:00
pcie-altera.c PCI: altera: Fix error when INTx is 4 2015-12-04 16:21:21 -06:00
pcie-designware.c PCI: designware: Remove incorrect io_base assignment 2015-11-24 14:06:41 -06:00
pcie-designware.h PCI: designware: Make driver arch-agnostic 2015-11-02 14:49:18 -06:00
pcie-hisi.c PCI: hisi: Fix hisi_pcie_cfg_read() 32-bit reads 2015-12-04 16:32:25 -06:00
pcie-iproc-bcma.c PCI: iproc: Free resource list after registration 2015-05-27 18:34:05 -05:00
pcie-iproc-platform.c PCI: iproc: Add outbound mapping support 2015-10-16 08:18:24 -05:00
pcie-iproc.c PCI: iproc: Fix header comment "Corporation" misspelling 2015-10-22 13:53:13 -05:00
pcie-iproc.h PCI: iproc: Add outbound mapping support 2015-10-16 08:18:24 -05:00
pcie-rcar.c PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD 2016-02-17 12:30:56 -08:00
pcie-spear13xx.c PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD 2016-02-17 12:30:56 -08:00
pcie-xilinx.c PCI: host: Mark PCIe/PCI (MSI) IRQ cascade handlers as IRQF_NO_THREAD 2016-02-17 12:30:56 -08:00