diff options
| author | Miaoqian Lin <linmq006@gmail.com> | 2022-06-01 12:09:30 +0400 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2022-06-09 17:36:57 +0100 |
| commit | eff4780f83d0ae3e5b6c02ff5d999dc4c1c5c8ce (patch) | |
| tree | f9ab977e6627c11d0909d3fcd1f2999d9c82a501 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | irqchip/gic-v3: Fix refcount leak in gic_populate_ppi_partitions (diff) | |
| download | linux-eff4780f83d0ae3e5b6c02ff5d999dc4c1c5c8ce.tar.gz linux-eff4780f83d0ae3e5b6c02ff5d999dc4c1c5c8ce.zip | |
irqchip/realtek-rtl: Fix refcount leak in map_interrupts
of_find_node_by_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
This function doesn't call of_node_put() in error path.
Call of_node_put() directly after of_property_read_u32() to cover
both normal path and error path.
Fixes: 9f3a0f34b84a ("irqchip: Add support for Realtek RTL838x/RTL839x interrupt controller")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220601080930.31005-7-linmq006@gmail.com
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
