[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220601080930.31005-1-linmq006@gmail.com>
Date: Wed, 1 Jun 2022 12:09:24 +0400
From: Miaoqian Lin <linmq006@...il.com>
To: Hector Martin <marcan@...can.st>, Sven Peter <sven@...npeter.dev>,
Alyssa Rosenzweig <alyssa@...enzweig.io>,
Thomas Gleixner <tglx@...utronix.de>,
Marc Zyngier <maz@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Bert Vermeulen <bert@...t.com>,
Birger Koblitz <mail@...ger-koblitz.de>,
John Crispin <john@...ozen.org>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: Miaoqian Lin <linmq006@...il.com>
Subject: [PATCH 0/6] irqchip: Fix some refcount leaks
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@gmail.com/
2. patch#2: https://lore.kernel.org/r/20220517111710.37753-1-linmq006@gmail.com/
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
Powered by blists - more mailing lists