Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206044
b: refs/heads/master
c: 084f70e
h: refs/heads/master
v: v3
  • Loading branch information
Ernesto Ramos authored and Greg Kroah-Hartman committed Aug 3, 2010
1 parent e1f8688 commit 2f2e3d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ec09714a0a5861c3e786967024ddfff00b0add6
refs/heads/master: 084f70ee096d385e363bd5d309cc7ff24fb98c53
8 changes: 6 additions & 2 deletions trunk/drivers/staging/tidspbridge/pmgr/dspapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ inline void find_strm_handle(struct strm_res_object **strmres,
{
rcu_read_lock();
*strmres = idr_find(((struct process_context *)pr_ctxt)->stream_id,
(int)hstream);
(int)hstream - 1);
rcu_read_unlock();
return;
}
Expand Down Expand Up @@ -1724,6 +1724,7 @@ u32 strmwrap_open(union trapped_args *args, void *pr_ctxt)
struct strm_res_object *strm_res_obj;
struct dsp_streamattrin strm_attr_in;
struct node_res_object *node_res;
int strmid;

find_node_handle(&node_res, pr_ctxt, args->args_strm_open.hnode);

Expand All @@ -1745,7 +1746,10 @@ u32 strmwrap_open(union trapped_args *args, void *pr_ctxt)
args->args_strm_open.direction,
args->args_strm_open.index, &attr, &strm_res_obj,
pr_ctxt);
CP_TO_USR(args->args_strm_open.ph_stream, &strm_res_obj->id, status, 1);
if (!status) {
strmid = strm_res_obj->id + 1;
CP_TO_USR(args->args_strm_open.ph_stream, &strmid, status, 1);
}
return status;
}

Expand Down

0 comments on commit 2f2e3d8

Please sign in to comment.