diff options
| author | Haoxiang Li <haoxiang_li2024@163.com> | 2026-06-22 23:11:27 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-29 18:53:34 +0100 |
| commit | 785903b7770f19ea05b8a76081dff691c56fa771 (patch) | |
| tree | 2d5613117403139be54b46fe08c949ba8cbfb26f /tools/perf/scripts/python | |
| parent | 2e5bf7f48bf170f8e615cea408289440c3328926 (diff) | |
ASoC: hdac_hdmi: Fix resource cleanup on probe failure
hdac_hdmi_dev_probe() gets the HDA link before allocating and
initializing the HDMI codec private data. Several later error
paths return directly without dropping the link reference,
leaving the hlink refcount unbalanced.
Release the link reference on probe failures. Also turn display
power off if the failure happens after it has been enabled.
This issue was dicussed in:
https://lore.kernel.org/all/s5h1s0esk8o.wl-tiwai@suse.de/
I think the paths fixed here are probe failure paths: the device
has not been fully initialized or bound, and runtime PM suspend
cannot be relied on to balance the reference taken during probe.
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Link: https://patch.msgid.link/20260622151127.1198196-1-haoxiang_li2024@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
