Skip to content

Commit 3319abb

Browse files
committed
ipc: fix a return code
ipc4_pipeline_complete() returns POSIX error codes, not IPC4 ones. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent c08acd3 commit 3319abb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ipc/ipc4/helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ int ipc4_pipeline_complete(struct ipc *ipc, uint32_t comp_id, uint32_t cmd)
898898

899899
ipc_pipe = ipc_get_pipeline_by_id(ipc, comp_id);
900900
if (!ipc_pipe)
901-
return -IPC4_INVALID_RESOURCE_ID;
901+
return -EINVAL;
902902

903903
/* Pass IPC to target core */
904904
if (!cpu_is_me(ipc_pipe->core))

0 commit comments

Comments
 (0)