Message ID | B852767254C5C94EBB1040EE0EFA060092D76400@dlee01.ent.ti.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | |
Headers | show |
diff --git a/drivers/dsp/bridge/pmgr/wcd.c b/drivers/dsp/bridge/pmgr/wcd.c index 20e02f1..d51798a 100644 --- a/drivers/dsp/bridge/pmgr/wcd.c +++ b/drivers/dsp/bridge/pmgr/wcd.c @@ -1028,7 +1028,7 @@ inline void find_node_handle(struct node_res_object **noderes, { rcu_read_lock(); *noderes = idr_find(((struct process_context *)pr_ctxt)->node_idp, - (int)hnode); + (int)hnode - 1); rcu_read_unlock(); return; } @@ -1086,6 +1086,8 @@ u32 nodewrap_allocate(union Trapped_Args *args, void *pr_ctxt) if (DSP_FAILED(status)) { status = DSP_EPOINTER; node_delete(node_res, pr_ctxt); + } else { + *args->args_node_allocate.ph_node += 1; } } func_cont: