[PATCH] media: platform: mtk-mdp3: fix device leaks at probe
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Thu Sep 25 06:44:01 PDT 2025
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 at vger.kernel.org # 6.1
> Cc: Moudy Ho <moudy.ho at mediatek.com>
> Signed-off-by: Johan Hovold <johan at kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
More information about the Linux-mediatek
mailing list