diff options
author | 2025-02-09 20:58:58 +0800 | |
---|---|---|
committer | 2025-02-25 07:16:50 -0600 | |
commit | bbf71f44aaf241d853759a71de7e7ebcdb89be3d (patch) | |
tree | eaeffbd80b8ac519afe71f28cd8f4ac1bbd38f42 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | of/irq: Fix device node refcount leakage in API of_irq_parse_raw() (diff) | |
download | wireguard-linux-bbf71f44aaf241d853759a71de7e7ebcdb89be3d.tar.xz wireguard-linux-bbf71f44aaf241d853759a71de7e7ebcdb89be3d.zip |
of/irq: Fix device node refcount leakages in of_irq_count()
of_irq_count() invokes of_irq_parse_one() to count IRQs, and successful
invocation of the later will get device node @irq.np refcount, but the
former does not put the refcount before next iteration invocation, hence
causes device node refcount leakages.
Fix by putting @irq.np refcount before the next iteration invocation.
Fixes: 3da5278727a8 ("of/irq: Rework of_irq_count()")
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-5-93e3a2659aa7@quicinc.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions