From: Markus Elfring <Markus.Elfring@web.de>
To: "Miaoqian Lin" <linmq006@gmail.com>,
iommu@lists.linux.dev, "Jörg Rödel" <joro@8bytes.org>,
"Rob Herring" <robh@kernel.org>,
"Robin Murphy" <robin.murphy@arm.com>,
"Thierry Reding" <treding@nvidia.com>,
"Will Deacon" <will@kernel.org>
Cc: stable@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] iommu/of: Fix device node reference leak in of_iommu_get_resv_regions
Date: Tue, 28 Oct 2025 14:05:14 +0100 [thread overview]
Message-ID: <1ea5b423-365f-46fe-94f1-ee248ad6b307@web.de> (raw)
In-Reply-To: <20251028063601.71934-1-linmq006@gmail.com>
…
> Add a call to of_node_put() to release the reference after the usage.
…
How do you think about to use the attribute “__free(device_node)”?
https://elixir.bootlin.com/linux/v6.18-rc3/source/include/linux/of.h#L138
https://elixir.bootlin.com/linux/v6.18-rc3/source/drivers/iommu/of_iommu.c#L196-L271
Regards,
Markus
prev parent reply other threads:[~2025-10-28 13:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-28 6:36 [PATCH] iommu/of: Fix device node reference leak in of_iommu_get_resv_regions Miaoqian Lin
2025-10-28 11:57 ` Robin Murphy
2025-10-28 13:05 ` Markus Elfring [this message]
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=1ea5b423-365f-46fe-94f1-ee248ad6b307@web.de \
--to=markus.elfring@web.de \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=linmq006@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=robin.murphy@arm.com \
--cc=stable@vger.kernel.org \
--cc=treding@nvidia.com \
--cc=will@kernel.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox