The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Johan Hovold <johan@kernel.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>,
	Hans Verkuil <hverkuil@kernel.org>,
	linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	Moudy Ho <moudy.ho@mediatek.com>
Subject: Re: [PATCH] media: platform: mtk-mdp3: fix device leaks at probe
Date: Thu, 25 Sep 2025 15:44:01 +0200	[thread overview]
Message-ID: <a1224727-0d33-4e62-a538-8013115848be@collabora.com> (raw)
In-Reply-To: <20250924143919.11183-1-johan@kernel.org>

Il 24/09/25 16:39, Johan Hovold ha scritto:
> Make sure to drop the references taken when looking up the subsys
> devices during probe on probe failure (e.g. probe deferral) and on
> driver unbind.
> 
> Similarly, drop the SCP device reference after retrieving its platform
> data during probe to avoid leaking it.
> 
> Note that holding a reference to a device does not prevent its driver
> data from going away.
> 
> Fixes: 61890ccaefaf ("media: platform: mtk-mdp3: add MediaTek MDP3 driver")
> Cc: stable@vger.kernel.org	# 6.1
> Cc: Moudy Ho <moudy.ho@mediatek.com>
> Signed-off-by: Johan Hovold <johan@kernel.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



      reply	other threads:[~2025-09-25 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-24 14:39 [PATCH] media: platform: mtk-mdp3: fix device leaks at probe Johan Hovold
2025-09-25 13:44 ` AngeloGioacchino Del Regno [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=a1224727-0d33-4e62-a538-8013115848be@collabora.com \
    --to=angelogioacchino.delregno@collabora.com \
    --cc=hverkuil@kernel.org \
    --cc=johan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=moudy.ho@mediatek.com \
    --cc=stable@vger.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