On Tue, 20 Aug 2024 10:28:43 +0100, Ma Ke make24@iscas.ac.cn wrote:
We fail to perform an of_node_put() when of_address_to_resource() fails, leading to a refcount leak.
Address this by moving the error handling path outside of the loop and making it common to all failure modes.
Cc: stable@vger.kernel.org Fixes: 4266ab1a8ff5 ("irqchip/gic-v2m: Refactor to prepare for ACPI support") Signed-off-by: Ma Ke make24@iscas.ac.cn
Reviewed-by: Marc Zyngier maz@kernel.org
M.