[PATCH v3] irqchip/gic-v2m: Fix refcount leak in gicv2m_of_init
Marc Zyngier
maz at kernel.org
Tue Aug 20 02:54:56 PDT 2024
On Tue, 20 Aug 2024 10:28:43 +0100,
Ma Ke <make24 at 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 at vger.kernel.org
> Fixes: 4266ab1a8ff5 ("irqchip/gic-v2m: Refactor to prepare for ACPI support")
> Signed-off-by: Ma Ke <make24 at iscas.ac.cn>
Reviewed-by: Marc Zyngier <maz at kernel.org>
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list