diff options
author | 2025-02-24 17:01:55 -0600 | |
---|---|---|
committer | 2025-02-25 07:19:13 -0600 | |
commit | a46a0805635d07de50c2ac71588345323c13b2f9 (patch) | |
tree | 454ffb9fdce54711864e59aadd5a31b04a1c2076 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | of: resolver: Simplify of_resolve_phandles() using __free() (diff) | |
download | wireguard-linux-a46a0805635d07de50c2ac71588345323c13b2f9.tar.xz wireguard-linux-a46a0805635d07de50c2ac71588345323c13b2f9.zip |
of: resolver: Fix device node refcount leakage in of_resolve_phandles()
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: da56d04c806a ("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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions