From: "CK Hu (胡俊光)" <ck.hu@mediatek.com>
To: "chunkuang.hu@kernel.org" <chunkuang.hu@kernel.org>,
"haoxiang_li2024@163.com" <haoxiang_li2024@163.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"junzhi.zhao@mediatek.com" <junzhi.zhao@mediatek.com>,
"airlied@gmail.com" <airlied@gmail.com>,
"jie.qiu@mediatek.com" <jie.qiu@mediatek.com>,
"simona@ffwll.ch" <simona@ffwll.ch>,
"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drm/mediatek: mtk_hdmi_common: Fix clock reference leaks
Date: Wed, 25 Nov 2026 03:02:46 +0000 [thread overview]
Message-ID: <aade78ffcc8fa95c0c4c5a75b815688a6838a56a.camel@mediatek.com> (raw)
In-Reply-To: <20261119031734.2797802-1-haoxiang_li2024@163.com>
On Thu, 2026-11-19 at 11:17 +0800, Haoxiang Li wrote:
> External email : Please do not click links or open attachments until you have verified the sender or the content.
>
>
> mtk_hdmi_get_all_clk() acquires clock references using
> of_clk_get_by_name(), but these references are never released.
> They leak when a later clock lookup or subsequent probe step
> fails, as well as on driver unbind.
>
> Use devm_clk_get() to automatically release each successfully acquired
> clock reference on probe failure or driver unbind. Remove the now
> unused device-node parameter from mtk_hdmi_get_all_clk() and update
> its caller.
Reviewed-by: CK Hu <ck.hu@mediatek.com>
>
> Fixes: 8f83f26891e1 ("drm/mediatek: Add HDMI support")
> Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
> ---
prev parent reply other threads:[~2026-11-25 3:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 3:17 Haoxiang Li
2026-11-25 3:02 ` CK Hu (胡俊光) [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=aade78ffcc8fa95c0c4c5a75b815688a6838a56a.camel@mediatek.com \
--to=ck.hu@mediatek.com \
--cc=airlied@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=haoxiang_li2024@163.com \
--cc=jie.qiu@mediatek.com \
--cc=junzhi.zhao@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=simona@ffwll.ch \
/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®