tplg: result of the free function propagated

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
This commit is contained in:
Marcin Maka 2018-10-08 14:18:45 +02:00
parent aeb18eefd9
commit f42c6573ea
1 changed files with 8 additions and 2 deletions

View File

@ -935,6 +935,7 @@ static int ipc_glb_tplg_free(uint32_t header,
int (*free_func)(struct ipc *ipc, uint32_t id))
{
struct sof_ipc_free *ipc_free = _ipc->comp_data;
int ret;
trace_ipc("Tcf");
@ -945,9 +946,14 @@ static int ipc_glb_tplg_free(uint32_t header,
}
/* free the object */
free_func(_ipc, ipc_free->id);
ret = free_func(_ipc, ipc_free->id);
return 0;
if (ret < 0) {
trace_error(TRACE_CLASS_IPC,
"ipc-glb-tplg-free free_func failed %d", ret);
}
return ret;
}
static int ipc_glb_tplg_message(uint32_t header)