summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuhammad Usama Anjum <usama.anjum@collabora.com>2024-09-06 15:37:24 +0500
committerMark Brown <broonie@kernel.org>2024-09-06 12:27:54 +0100
commit3c5a18a10a8c6fab27739e6e7bd0e4c0aa854d92 (patch)
tree6f7fea129402044d22fab510982d282ae984a433
parent1798acef8f50af59abaa0ff4775e7a79a68db671 (diff)
downloadlinux-stable-3c5a18a10a8c6fab27739e6e7bd0e4c0aa854d92.tar.gz
linux-stable-3c5a18a10a8c6fab27739e6e7bd0e4c0aa854d92.tar.bz2
linux-stable-3c5a18a10a8c6fab27739e6e7bd0e4c0aa854d92.zip
ASoC: amd: acp: Return in-case of error
Return when error occurs instead of proceeding to for loop which will use val uninitialized. Fixes: f6f7d25b1103 ("ASoC: amd: acp: Add pte configuration for ACP7.0 platform") Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Link: https://patch.msgid.link/20240906103727.222749-1-usama.anjum@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/amd/acp/acp-platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/acp/acp-platform.c b/sound/soc/amd/acp/acp-platform.c
index ae63b2e693ab..3a7a467b7063 100644
--- a/sound/soc/amd/acp/acp-platform.c
+++ b/sound/soc/amd/acp/acp-platform.c
@@ -231,7 +231,7 @@ void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream, int s
break;
default:
dev_err(adata->dev, "Invalid dai id %x\n", stream->dai_id);
- break;
+ return;
}
break;
default: