summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2025-09-24 16:39:19 +0200
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-10-20 09:23:17 +0200
commit8f6f3aa21517ef34d50808af0c572e69580dca20 (patch)
treee1505dcdf3e710ac45dc96f69d32c400006da025 /tools/perf/scripts/python/stackcollapse.py
parenta5844227e0f030d2af2d85d4aed10c5eca6ca176 (diff)
downloadlinux-8f6f3aa21517ef34d50808af0c572e69580dca20.tar.gz
linux-8f6f3aa21517ef34d50808af0c572e69580dca20.zip
media: platform: mtk-mdp3: fix device leaks at probe
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> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions