diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-08-26 12:22:34 +0100 |
|---|---|---|
| committer | Rob Herring (Arm) <robh@kernel.org> | 2026-08-26 09:49:03 -0500 |
| commit | fe66c3ff85e85d492673c6dc95c3d624a63e0282 (patch) | |
| tree | 455638b88515e20c47aaeadb87058223f50b220d /scripts | |
| parent | 660ee6792edfe498e35ec17b1b34bb6704e74f4f (diff) | |
| download | linux-fe66c3ff85e85d492673c6dc95c3d624a63e0282.tar.gz linux-fe66c3ff85e85d492673c6dc95c3d624a63e0282.zip | |
of/irq: Fix device node refcount leak in of_irq_get_affinity()
of_irq_parse_one() raises the refcount of the interrupt controller node
on success, and of_irq_get_affinity() returns without putting it, so
every call past the parse leaks one reference. It is reached from
platform_get_irq_affinity(), used by arm_pmu, arm_spe_pmu and
coresight-trbe.
Put it once irq_populate_fwspec_info() has run: no in-tree
->get_fwspec_info() returns a mask that lives in the node.
Fixes: 5404f5c06dd4 ("of/irq: Add interrupt affinity reporting interface")
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20260826112234.1033974-1-fuad.tabba@linux.dev
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
