cdx: Fix device node reference leak in cdx_msi_domain_init
Subsystems (2)
PATCH 1/1 cdx: Fix device node reference leak in cdx_msi_domain_init
Add missing of_node_put() call to release
the device node reference obtained via of_parse_phandle().
--- drivers/cdx/cdx_msi.c | 1 + 1 file changed, 1 insertion(+)
drivers/cdx/cdx_msi.c +1 -0
@@ -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 ;
Signature · 1 line
2.35.1
Quoted 2 lines
Add missing
of_node_put()call to release
the device node reference obtained viaof_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
Greg Kroah-Hartman
maintainerQuoted 8 lines · Markus Elfring
Quoted 2 lines
Add missing
of_node_put()call to release
the device node reference obtained viaof_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
Quoted 6 lines
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
Quoted 6 lines · Miaoqian Lin
Add missing
of_node_put()call to release
the device node reference obtained viaof_parse_phandle().Fixes 0e439ba38e61 ("cdx: add MSI support for CDX bus")Signed-off-by Miaoqian Lin <[email protected]>