2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/sound/soc/amd
Daniel Baluta 3ff53862c3
ASoC: amd: acp: Fix possible deadlock
On error path, function acp_i2s_set_tdm_slot returns without releasing
the lock and this could result in potential deadlocks in the future.

Error reported by sparse:
sound/soc/amd/acp/acp-i2s.c:95:12: error: context imbalance in
'acp_i2s_set_tdm_slot' - different lock contexts for basic block

Fixes: cd60dec899 ("ASoC: amd: acp: Refactor TDM slots selction based on acp revision id")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20250127083422.20406-1-daniel.baluta@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-01-27 13:35:35 +00:00
..
acp ASoC: amd: acp: Fix possible deadlock 2025-01-27 13:35:35 +00:00
include
ps Linux 6.13-rc6 2025-01-08 11:58:49 +00:00
raven ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
renoir ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
rpl ASoC: amd: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:13 +09:00
vangogh ASoC: amd: remove dpcm_xxx flags 2024-10-23 13:01:54 +01:00
yc ASoC: acp: Support microphone from Lenovo Go S 2025-01-23 11:29:37 +00:00
acp3x-rt5682-max9836.c ASoC: amd: remove dpcm_xxx flags 2024-10-23 13:01:54 +01:00
acp-config.c ASoC: amd: Add acpi machine id for acp7.0 version based platform 2024-08-23 11:03:05 +01:00
acp-da7219-max98357a.c ASoC: amd: remove dpcm_xxx flags 2024-10-23 13:01:54 +01:00
acp-es8336.c ASoC: amd: remove dpcm_xxx flags 2024-10-23 13:01:54 +01:00
acp-pcm-dma.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
acp-rt5645.c ASoC: amd: convert not to use asoc_xxx() 2023-09-25 14:16:17 +02:00
acp.h ASoC: amd: add I2S MICSP instance support 2022-07-05 13:00:44 +01:00
Kconfig ASoC: amd: Add ACPI dependency to fix build error 2025-01-09 17:22:23 +00:00
mach-config.h ASoC: amd: acp: add rt722 based soundwire machines 2024-11-13 13:52:26 +00:00
Makefile ASoC: amd: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:13 +09:00