[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a1224727-0d33-4e62-a538-8013115848be@collabora.com>
Date: Thu, 25 Sep 2025 15:44:01 +0200
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
To: Johan Hovold <johan@...nel.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: Matthias Brugger <matthias.bgg@...il.com>,
Hans Verkuil <hverkuil@...nel.org>, linux-media@...r.kernel.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org, Moudy Ho <moudy.ho@...iatek.com>
Subject: Re: [PATCH] media: platform: mtk-mdp3: fix device leaks at probe
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@...r.kernel.org # 6.1
> Cc: Moudy Ho <moudy.ho@...iatek.com>
> Signed-off-by: Johan Hovold <johan@...nel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Powered by blists - more mailing lists