[PATCH 0/6] irqchip: Fix some refcount leaks

From: Miaoqian Lin
Date: Wed Jun 01 2022 - 04:11:23 EST


The following patchset fix some refcount leak bugs in irqchip.
The cause of the bugs are missing post handling of some APIs
——of_find_node_by_phandle(),of_find_matching_node_and_match(),
of_get_child_by_name().
These APIs returns node pointer with refcount incremented.
and should use of_node_put() to release it when not needed anymore.

I've sent patch#1 and patch#2 separately before, I move them into
one series for better management. the content of them don't change.

related link:
1. patch#1: https://lore.kernel.org/r/20220526074348.23972-1-linmq006@xxxxxxxxx/
2. patch#2: https://lore.kernel.org/r/20220517111710.37753-1-linmq006@xxxxxxxxx/

Miaoqian Lin (6):
irqchip/gic/realview: Fix refcount leak in realview_gic_of_init
irqchip/apple-aic: Fix refcount leak in build_fiq_affinity
irqchip/apple-aic: Fix refcount leak in aic_of_ic_init
irqchip/gic-v3: Fix error handling in gic_populate_ppi_partitions
irqchip/gic-v3: Fix refcount leak in gic_populate_ppi_partitions
irqchip/realtek-rtl: Fix refcount leak in map_interrupts

drivers/irqchip/irq-apple-aic.c | 2 ++
drivers/irqchip/irq-gic-realview.c | 1 +
drivers/irqchip/irq-gic-v3.c | 7 +++++--
drivers/irqchip/irq-realtek-rtl.c | 2 +-
4 files changed, 9 insertions(+), 3 deletions(-)

--
2.25.1