]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: mediatek: mtk-svs: fix device leaks on mt8192 probe failure
authorJohan Hovold <johan@kernel.org>
Tue, 9 Sep 2025 09:56:51 +0000 (11:56 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 10 Sep 2025 09:48:56 +0000 (11:48 +0200)
commitf1a68ba5739e42353609438e27a83b08d7f5cfd6
treed6982b940d68d62af8253c3601a69dbd08552213
parent6ab4f79ea92324f7f2eb22692054a34bbba7cf35
soc: mediatek: mtk-svs: fix device leaks on mt8192 probe failure

Make sure to drop the references taken by of_find_device_by_node() when
looking up the thermal sensor and opp devices during probe on probe
failure (e.g. probe deferral) and on driver unbind.

Fixes: 0bbb09b2af9d ("soc: mediatek: SVS: add mt8192 SVS GPU driver")
Cc: Roger Lu <roger.lu@mediatek.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20250909095651.5530-3-johan@kernel.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-svs.c