* [PATCH] cdx: Fix device node reference leak in cdx_msi_domain_init
@ 2025-09-02 8:49 Miaoqian Lin
2025-09-02 9:05 ` Markus Elfring
2025-09-02 13:19 ` Gupta, Nipun
0 siblings, 2 replies; 4+ messages in thread
From: Miaoqian Lin @ 2025-09-02 8:49 UTC (permalink / raw)
To: Nipun Gupta, Nikhil Agarwal, Greg Kroah-Hartman, Abhijit Gangurde,
Thomas Gleixner, Pieter Jansen van Vuuren, linux-kernel
Cc: linmq006, stable
Add missing of_node_put() call to release
the device node reference obtained via of_parse_phandle().
Fixes: 0e439ba38e61 ("cdx: add MSI support for CDX bus")
Cc: stable@vger.kernel.org
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
drivers/cdx/cdx_msi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/cdx/cdx_msi.c b/drivers/cdx/cdx_msi.c
index 3388a5d1462c..91b95422b263 100644
--- a/drivers/cdx/cdx_msi.c
+++ b/drivers/cdx/cdx_msi.c
@@ -174,6 +174,7 @@ struct irq_domain *cdx_msi_domain_init(struct device *dev)
}
parent = irq_find_matching_fwnode(of_fwnode_handle(parent_node), DOMAIN_BUS_NEXUS);
+ of_node_put(parent_node);
if (!parent || !msi_get_domain_info(parent)) {
dev_err(dev, "unable to locate ITS domain\n");
return NULL;
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] cdx: Fix device node reference leak in cdx_msi_domain_init
2025-09-02 8:49 [PATCH] cdx: Fix device node reference leak in cdx_msi_domain_init Miaoqian Lin
@ 2025-09-02 9:05 ` Markus Elfring
2025-09-02 9:33 ` Greg Kroah-Hartman
2025-09-02 13:19 ` Gupta, Nipun
1 sibling, 1 reply; 4+ messages in thread
From: Markus Elfring @ 2025-09-02 9:05 UTC (permalink / raw)
To: Miaoqian Lin
Cc: stable, LKML, Abhijit Gangurde, Greg Kroah-Hartman,
Nikhil Agarwal, Nipun Gupta, Pieter Jansen van Vuuren,
Thomas Gleixner
> Add missing of_node_put() call to release
> the device node reference obtained via of_parse_phandle().
You may occasionally put more than 58 characters into text lines
of such a change description.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.17-rc4#n638
How do you think about to append parentheses to the function name
in the summary phrase?
Regards,
Markus
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cdx: Fix device node reference leak in cdx_msi_domain_init
2025-09-02 9:05 ` Markus Elfring
@ 2025-09-02 9:33 ` Greg Kroah-Hartman
0 siblings, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2025-09-02 9:33 UTC (permalink / raw)
To: Markus Elfring
Cc: Miaoqian Lin, stable, LKML, Abhijit Gangurde, Nikhil Agarwal,
Nipun Gupta, Pieter Jansen van Vuuren, Thomas Gleixner
On Tue, Sep 02, 2025 at 11:05:45AM +0200, Markus Elfring wrote:
> > Add missing of_node_put() call to release
> > the device node reference obtained via of_parse_phandle().
>
> You may occasionally put more than 58 characters into text lines
> of such a change description.
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.17-rc4#n638
>
>
> How do you think about to append parentheses to the function name
> in the summary phrase?
>
> Regards,
> Markus
>
Hi,
This is the semi-friendly patch-bot of Greg Kroah-Hartman.
Markus, you seem to have sent a nonsensical or otherwise pointless
review comment to a patch submission on a Linux kernel developer mailing
list. I strongly suggest that you not do this anymore. Please do not
bother developers who are actively working to produce patches and
features with comments that, in the end, are a waste of time.
Patch submitter, please ignore Markus's suggestion; you do not need to
follow it at all. The person/bot/AI that sent it is being ignored by
almost all Linux kernel maintainers for having a persistent pattern of
behavior of producing distracting and pointless commentary, and
inability to adapt to feedback. Please feel free to also ignore emails
from them.
thanks,
greg k-h's patch email bot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] cdx: Fix device node reference leak in cdx_msi_domain_init
2025-09-02 8:49 [PATCH] cdx: Fix device node reference leak in cdx_msi_domain_init Miaoqian Lin
2025-09-02 9:05 ` Markus Elfring
@ 2025-09-02 13:19 ` Gupta, Nipun
1 sibling, 0 replies; 4+ messages in thread
From: Gupta, Nipun @ 2025-09-02 13:19 UTC (permalink / raw)
To: Miaoqian Lin, Nikhil Agarwal, Greg Kroah-Hartman,
Abhijit Gangurde, Thomas Gleixner, Pieter Jansen van Vuuren,
linux-kernel
Cc: stable
On 02-09-2025 14:19, Miaoqian Lin wrote:
> Add missing of_node_put() call to release
> the device node reference obtained via of_parse_phandle().
>
> Fixes: 0e439ba38e61 ("cdx: add MSI support for CDX bus")
> Cc: stable@vger.kernel.org
> Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Nipun Gupta <nipun.gupta@amd.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-09-02 13:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-02 8:49 [PATCH] cdx: Fix device node reference leak in cdx_msi_domain_init Miaoqian Lin
2025-09-02 9:05 ` Markus Elfring
2025-09-02 9:33 ` Greg Kroah-Hartman
2025-09-02 13:19 ` Gupta, Nipun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).