From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: 路红飞 <luhongfei@vivo.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"Hans Verkuil" <hverkuil-cisco@xs4all.nl>,
"Moudy Ho" <moudy.ho@mediatek.com>,
"Ping-Hsun Wu" <ping-hsun.wu@mediatek.com>,
"Arnd Bergmann" <arnd@arndb.de>, "Deepak R Varma" <drv@mailo.com>,
"Sun Ke" <sunke32@huawei.com>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>
Cc: "opensource.kernel" <opensource.kernel@vivo.com>
Subject: Re: [PATCH v2] media: mdp3: Fix resource leak in a for_each_child_of_node() loop
Date: Wed, 19 Jul 2023 13:27:31 +0200 [thread overview]
Message-ID: <c32d744a-c711-fdd9-0601-0ec27a0af733@collabora.com> (raw)
In-Reply-To: <20230719100137.41161-1-luhongfei@vivo.com>
Il 19/07/23 12:01, 路红飞 ha scritto:
> for_each_child_of_node should have of_node_put()
> in error path avoid resource leaks.
>
> Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
That's still HTML; please avoid Cc'ing a bunch of people if you're testing
your email sendout.
Please test internally and once working send it again.
Btw, the code looks good... but I can't give you a R-b because of HTML format.
Thanks,
Angelo
> ---
> Changelog:
> v1->v2:
> 1. Change the subject line of this patch to include driver name.
> 2. Remove the unneeded of_node_put.
>
> drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
> index a605e80c7dc3..40c4b79a5090 100644
> --- a/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
> +++ b/drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
> @@ -1135,6 +1135,7 @@ int mdp_comp_config(struct mdp_dev *mdp)
> comp = mdp_comp_create(mdp, node, id);
> if (IS_ERR(comp)) {
> ret = PTR_ERR(comp);
> + of_node_put(node);
> goto err_init_comps;
> }
>
next parent reply other threads:[~2023-07-19 11:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230719100137.41161-1-luhongfei@vivo.com>
2023-07-19 11:27 ` AngeloGioacchino Del Regno [this message]
[not found] <20230720062248.37906-1-luhongfei@vivo.com>
2023-07-20 7:51 ` AngeloGioacchino Del Regno
[not found] ` <30bf6cc7-615b-52c5-0c23-f8b4be890e5e@vivo.com>
2023-07-20 12:47 ` AngeloGioacchino Del Regno
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=c32d744a-c711-fdd9-0601-0ec27a0af733@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=arnd@arndb.de \
--cc=drv@mailo.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=luhongfei@vivo.com \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.org \
--cc=moudy.ho@mediatek.com \
--cc=opensource.kernel@vivo.com \
--cc=ping-hsun.wu@mediatek.com \
--cc=sunke32@huawei.com \
/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
all inboxes | Powered by JetHome®