Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/audio/base_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,16 @@ __cold static int basefw_pipeline_list_info_get(uint32_t *data_offset, char *dat
pipeline_data = ipc4_get_pipeline_data_wrapper();
ppl_data->pipelines_count = 0;

for (int ppl = 0; ppl < pipeline_data->pipelines_count; ppl++) {
if (pipeline_data->pipelines_count > IPC4_MAX_PPL_COUNT) {
tr_err(&ipc_tr, "pipelines_count %u exceeds maximum %u",
pipeline_data->pipelines_count, IPC4_MAX_PPL_COUNT);
return IPC4_ERROR_INVALID_PARAM;
}
Comment on lines +535 to +539

for (uint32_t ppl = 0; ppl < pipeline_data->pipelines_count; ppl++) {
ipc_pipe = ipc_get_pipeline_by_id(ipc, ppl);
if (!ipc_pipe)
tr_err(&ipc_tr, "No pipeline with instance_id = %d", ppl);
tr_err(&ipc_tr, "No pipeline with instance_id = %u", ppl);
else
ppl_data->ppl_id[ppl_data->pipelines_count++] =
ipc_pipe->pipeline->pipeline_id;
Expand Down
Loading