Skip to content

Commit

Permalink
ipc: fix a return code
Browse files Browse the repository at this point in the history
ipc4_pipeline_complete() returns POSIX error codes, not IPC4 ones.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
  • Loading branch information
lyakh committed Mar 4, 2025
1 parent 1726dae commit 9a886fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipc/ipc4/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ __cold int ipc4_pipeline_complete(struct ipc *ipc, uint32_t comp_id, uint32_t cm

ipc_pipe = ipc_get_pipeline_by_id(ipc, comp_id);
if (!ipc_pipe)
return -IPC4_INVALID_RESOURCE_ID;
return -EINVAL;

/* Pass IPC to target core */
if (!cpu_is_me(ipc_pipe->core))
Expand Down

0 comments on commit 9a886fd

Please sign in to comment.