Files
Zijun Hu 8f91566f85 of: resolver: Fix device node refcount leakage in of_resolve_phandles()
[ Upstream commit a46a080563 ]

In of_resolve_phandles(), refcount of device node @local_fixups will be
increased if the for_each_child_of_node() exits early, but nowhere to
decrease the refcount, so cause refcount leakage for the node.

Fix by using __free() on @local_fixups.

Fixes: da56d04c80 ("of/resolver: Switch to new local fixups format.")
Cc: stable@vger.kernel.org
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20250209-of_irq_fix-v2-9-93e3a2659aa7@quicinc.com
[robh: Use __free() instead]
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-02 08:01:32 +02:00
..
2024-07-04 14:36:04 +01:00
2024-12-31 07:55:16 -06:00
2024-10-08 09:47:30 -05:00