Commit a4d0b76c authored by Thippeswamy Havalige's avatar Thippeswamy Havalige Committed by Greg Kroah-Hartman
Browse files

PCI: xilinx-cpm: Fix IRQ domain leak in error path of probe



[ Upstream commit 57b03022 ]

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: 49e427e6 ("Merge branch 'pci/host-probe-refactor'")
Signed-off-by: default avatarThippeswamy Havalige <thippeswamy.havalige@amd.com>
[kwilczynski: added missing Fixes: tag, refactored to use one of the goto labels]
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Link: https://lore.kernel.org/r/20250224155025.782179-2-thippeswamy.havalige@amd.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent defab1c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment