sst-linux/drivers/pci/controller
Thippeswamy Havalige a4d0b76c65 PCI: xilinx-cpm: Fix IRQ domain leak in error path of probe
[ Upstream commit 57b0302240741e73fe51f88404b3866e0d2933ad ]

The IRQ domain allocated for the PCIe controller is not freed if
resource_list_first_type() returns NULL, leading to a resource leak.

This fix ensures properly cleaning up the allocated IRQ domain in
the error path.

Fixes: 49e427e6bd ("Merge branch 'pci/host-probe-refactor'")
Signed-off-by: Thippeswamy Havalige <thippeswamy.havalige@amd.com>
[kwilczynski: added missing Fixes: tag, refactored to use one of the goto labels]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Link: https://lore.kernel.org/r/20250224155025.782179-2-thippeswamy.havalige@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:33 +02:00
..
cadence PCI: cadence-ep: Fix the driver to send MSG TLP for INTx without data payload 2025-04-10 14:33:32 +02:00
dwc PCI: keystone: Add link up check to ks_pcie_other_map_bus() 2024-12-14 19:54:15 +01:00
mobiveil
Kconfig
Makefile
pci-aardvark.c
pci-ftpci100.c PCI: ftpci100: Release the clock resources 2023-07-19 16:21:35 +02:00
pci-host-common.c Revert "PCI: Use preserve_config in place of pci_flags" 2025-01-23 17:17:15 +01:00
pci-host-generic.c PCI: Unify ECAM constants in native PCI Express drivers 2020-12-10 14:55:49 -06:00
pci-hyperv-intf.c
pci-hyperv.c PCI: hv: Return zero, not garbage, when reading PCI_INTERRUPT_PIN 2024-08-03 08:49:37 +02:00
pci-ixp4xx.c
pci-loongson.c PCI: loongson: Enable MSI in LS7A Root Complex 2024-08-03 08:49:37 +02:00
pci-mvebu.c
pci-rcar-gen2.c
pci-tegra.c Revert "PCI: tegra: Use PCI_CONF1_EXT_ADDRESS() macro" 2022-10-17 12:11:09 -05:00
pci-thunder-ecam.c
pci-thunder-pem.c
pci-v3-semi.c PCI: v3-semi: Remove unneeded break 2020-10-20 10:59:55 -05:00
pci-versatile.c
pci-xgene-msi.c
pci-xgene.c PCI: Drop of_match_ptr() to avoid unused variables 2022-07-06 14:34:09 -05:00
pcie-altera-msi.c PCI: Bulk conversion to generic_handle_domain_irq() 2021-08-02 11:53:05 -05:00
pcie-altera.c
pcie-apple.c PCI: apple: Initialize pcie->nvecs before use 2023-09-13 09:42:45 +02:00
pcie-brcmstb.c PCI: brcmstb: Fix potential premature regulator disabling 2025-04-10 14:33:32 +02:00
pcie-hisi-error.c
pcie-iproc-bcma.c PCI: Add defines for normal and subtractive PCI bridges 2022-02-17 15:29:35 -06:00
pcie-iproc-msi.c PCI: iproc: Use bitmap API to allocate bitmaps 2022-07-05 15:02:56 -05:00
pcie-iproc-platform.c PCI: iproc: Rename iproc_pcie_pltfm_ to iproc_pltfm_pcie_ 2022-01-03 15:01:53 -06:00
pcie-iproc.c PCI: iproc: Set all 24 bits of PCI class code 2022-02-17 15:30:01 -06:00
pcie-iproc.h
pcie-mediatek-gen3.c
pcie-mediatek.c PCI: mediatek: Clear interrupt status before dispatching handler 2024-01-25 15:27:44 -08:00
pcie-microchip-host.c PCI: microchip: Correct the DED and SEC interrupt bit offsets 2023-09-13 09:42:46 +02:00
pcie-mt7621.c PCI: mt7621: Delay phy ports initialization 2023-03-10 09:33:35 +01:00
pcie-rcar-ep.c PCI: rcar-ep: Fix incorrect variable used when calling devm_request_mem_region() 2025-02-21 13:49:19 +01:00
pcie-rcar-host.c PCI: rcar: Demote WARN() to dev_warn_ratelimited() in rcar_pcie_wakeup() 2024-08-03 08:49:17 +02:00
pcie-rcar.c PCI: rcar: Fix calculating mask for PCIEPAMR register 2020-05-11 11:29:48 +01:00
pcie-rcar.h PCI: rcar: Add L1 link state fix into data abort hook 2021-08-16 14:51:30 +01:00
pcie-rockchip-ep.c PCI: rockchip-ep: Fix address translation unit programming 2024-12-14 19:54:16 +01:00
pcie-rockchip-host.c PCI: Convert to new *_PM_OPS macros 2022-07-27 11:56:17 -05:00
pcie-rockchip.c PCI: rockchip: Use GPIOD_OUT_LOW flag while requesting ep_gpio 2024-08-03 08:49:37 +02:00
pcie-rockchip.h PCI: rockchip-ep: Fix address translation unit programming 2024-12-14 19:54:16 +01:00
pcie-xilinx-cpm.c PCI: xilinx-cpm: Fix IRQ domain leak in error path of probe 2025-04-10 14:33:33 +02:00
pcie-xilinx-nwl.c PCI: xilinx-nwl: Fix off-by-one in INTx IRQ handler 2024-10-17 15:21:15 +02:00
pcie-xilinx.c
vmd.c PCI: vmd: Create domain symlink before pci_bus_add_devices() 2024-12-27 13:52:51 +01:00