From: Miaoqian Lin <linmq006@gmail.com> To: Hector Martin <marcan@marcan.st>, Sven Peter <sven@svenpeter.dev>, Alyssa Rosenzweig <alyssa@rosenzweig.io>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Bert Vermeulen <bert@biot.com>, Birger Koblitz <mail@birger-koblitz.de>, John Crispin <john@phrozen.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Miaoqian Lin <linmq006@gmail.com> Subject: [PATCH 0/6] irqchip: Fix some refcount leaks Date: Wed, 1 Jun 2022 12:09:24 +0400 [thread overview] Message-ID: <20220601080930.31005-1-linmq006@gmail.com> (raw) 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
WARNING: multiple messages have this Message-ID (diff)
From: Miaoqian Lin <linmq006@gmail.com> To: Hector Martin <marcan@marcan.st>, Sven Peter <sven@svenpeter.dev>, Alyssa Rosenzweig <alyssa@rosenzweig.io>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Bert Vermeulen <bert@biot.com>, Birger Koblitz <mail@birger-koblitz.de>, John Crispin <john@phrozen.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Miaoqian Lin <linmq006@gmail.com> Subject: [PATCH 0/6] irqchip: Fix some refcount leaks Date: Wed, 1 Jun 2022 12:09:24 +0400 [thread overview] Message-ID: <20220601080930.31005-1-linmq006@gmail.com> (raw) 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-06-01 8:11 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-01 8:09 Miaoqian Lin [this message] 2022-06-01 8:09 ` [PATCH 0/6] irqchip: Fix some refcount leaks Miaoqian Lin 2022-06-01 8:09 ` [PATCH 1/6] irqchip/gic/realview: Fix refcount leak in realview_gic_of_init Miaoqian Lin 2022-06-01 8:09 ` Miaoqian Lin 2022-06-09 16:50 ` [irqchip: irq/irqchip-fixes] " irqchip-bot for Miaoqian Lin 2022-06-01 8:09 ` [PATCH 2/6] irqchip/apple-aic: Fix refcount leak in build_fiq_affinity Miaoqian Lin 2022-06-01 8:09 ` Miaoqian Lin 2022-06-09 16:50 ` [irqchip: irq/irqchip-fixes] " irqchip-bot for Miaoqian Lin 2022-06-01 8:09 ` [PATCH 3/6] irqchip/apple-aic: Fix refcount leak in aic_of_ic_init Miaoqian Lin 2022-06-01 8:09 ` Miaoqian Lin 2022-06-09 16:50 ` [irqchip: irq/irqchip-fixes] " irqchip-bot for Miaoqian Lin 2022-06-01 8:09 ` [PATCH 4/6] irqchip/gic-v3: Fix error handling in gic_populate_ppi_partitions Miaoqian Lin 2022-06-01 8:09 ` Miaoqian Lin 2022-06-09 16:50 ` [irqchip: irq/irqchip-fixes] " irqchip-bot for Miaoqian Lin 2022-06-01 8:09 ` [PATCH 5/6] irqchip/gic-v3: Fix refcount leak " Miaoqian Lin 2022-06-01 8:09 ` Miaoqian Lin 2022-06-09 16:50 ` [irqchip: irq/irqchip-fixes] " irqchip-bot for Miaoqian Lin 2022-06-01 8:09 ` [PATCH 6/6] irqchip/realtek-rtl: Fix refcount leak in map_interrupts Miaoqian Lin 2022-06-01 8:09 ` Miaoqian Lin 2022-06-09 16:50 ` [irqchip: irq/irqchip-fixes] " irqchip-bot for Miaoqian Lin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220601080930.31005-1-linmq006@gmail.com \ --to=linmq006@gmail.com \ --cc=alyssa@rosenzweig.io \ --cc=bert@biot.com \ --cc=john@phrozen.org \ --cc=linus.walleij@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mail@birger-koblitz.de \ --cc=marcan@marcan.st \ --cc=maz@kernel.org \ --cc=sven@svenpeter.dev \ --cc=tglx@linutronix.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.