Skip to content

Commit 3c5a18a

Browse files
Muhammad Usama Anjumbroonie
authored andcommitted
ASoC: amd: acp: Return in-case of error
Return when error occurs instead of proceeding to for loop which will use val uninitialized. Fixes: f6f7d25 ("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>
1 parent 1798ace commit 3c5a18a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/amd/acp/acp-platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void config_acp_dma(struct acp_dev_data *adata, struct acp_stream *stream, int s
231231
break;
232232
default:
233233
dev_err(adata->dev, "Invalid dai id %x\n", stream->dai_id);
234-
break;
234+
return;
235235
}
236236
break;
237237
default:

0 commit comments

Comments
 (0)