aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorCezary Rojewski <[email protected]>2025-05-30 14:10:17 +0000
committerMark Brown <[email protected]>2025-06-02 11:26:44 +0000
commitff0045de4ee0288dec683690f66f2f369b7d3466 (patch)
treea6e58f93033a710e02ed4c3f068b37906f6668fa /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentASoC: amd: yc: Add support for Lenovo Yoga 7 16ARP8 (diff)
downloadkernel-ff0045de4ee0288dec683690f66f2f369b7d3466.tar.gz
kernel-ff0045de4ee0288dec683690f66f2f369b7d3466.zip
ASoC: codecs: hda: Fix RPM usage count underflow
RPM manipulation in hda_codec_probe_complete()'s error path is superfluous and leads to RPM usage count underflow if the build-controls operation fails. hda_codec_probe_complete() is called in: 1) hda_codec_probe() for all non-HDMI codecs 2) in card->late_probe() for HDMI codecs Error path for hda_codec_probe() takes care of bus' RPM already. For 2) if late_probe() fails, ASoC performs card cleanup what triggers hda_codec_remote() - same treatment is in 1). Fixes: b5df2a7dca1c ("ASoC: codecs: Add HD-Audio codec driver") Reviewed-by: Amadeusz Sławiński <[email protected]> Signed-off-by: Cezary Rojewski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions