Skip to content

Commit f42c657

Browse files
author
Marcin Maka
committed
tplg: result of the free function propagated
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
1 parent aeb18ee commit f42c657

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/ipc/handler.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@ static int ipc_glb_tplg_free(uint32_t header,
935935
int (*free_func)(struct ipc *ipc, uint32_t id))
936936
{
937937
struct sof_ipc_free *ipc_free = _ipc->comp_data;
938+
int ret;
938939

939940
trace_ipc("Tcf");
940941

@@ -945,9 +946,14 @@ static int ipc_glb_tplg_free(uint32_t header,
945946
}
946947

947948
/* free the object */
948-
free_func(_ipc, ipc_free->id);
949+
ret = free_func(_ipc, ipc_free->id);
949950

950-
return 0;
951+
if (ret < 0) {
952+
trace_error(TRACE_CLASS_IPC,
953+
"ipc-glb-tplg-free free_func failed %d", ret);
954+
}
955+
956+
return ret;
951957
}
952958

953959
static int ipc_glb_tplg_message(uint32_t header)

0 commit comments

Comments
 (0)