From 9a886fd16860baa205de897dc30d352c783dae60 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Tue, 4 Mar 2025 12:08:36 +0100 Subject: [PATCH] ipc: fix a return code ipc4_pipeline_complete() returns POSIX error codes, not IPC4 ones. Signed-off-by: Guennadi Liakhovetski --- src/ipc/ipc4/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc/ipc4/helper.c b/src/ipc/ipc4/helper.c index d31f5f4b7d44..d782df04cb90 100644 --- a/src/ipc/ipc4/helper.c +++ b/src/ipc/ipc4/helper.c @@ -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))