Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206039
b: refs/heads/master
c: 35f338e
h: refs/heads/master
i:
  206037: 9be35b4
  206035: a69bb30
  206031: 1d646c9
v: v3
  • Loading branch information
Ernesto Ramos authored and Greg Kroah-Hartman committed Aug 3, 2010
1 parent b0d8a8e commit d3d2043
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: 019415ce5e00bcc0287f2ea88042b9fb685cdbcf
refs/heads/master: 35f338e4f2fcd2614f6fdff33f38920cf9434f86
14 changes: 8 additions & 6 deletions trunk/drivers/staging/tidspbridge/pmgr/dspapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ u32 mgrwrap_unregister_object(union trapped_args *args, void *pr_ctxt)
*/
u32 mgrwrap_wait_for_bridge_events(union trapped_args *args, void *pr_ctxt)
{
int status = 0, real_status = 0;
int status = 0;
struct dsp_notification *anotifications[MAX_EVENTS];
struct dsp_notification notifications[MAX_EVENTS];
u32 index, i;
Expand All @@ -554,19 +554,21 @@ u32 mgrwrap_wait_for_bridge_events(union trapped_args *args, void *pr_ctxt)
/* get the events */
for (i = 0; i < count; i++) {
CP_FM_USR(&notifications[i], anotifications[i], status, 1);
if (!status) {
/* set the array of pointers to kernel structures */
anotifications[i] = &notifications[i];
if (status || !notifications[i].handle) {
status = -EINVAL;
break;
}
/* set the array of pointers to kernel structures */
anotifications[i] = &notifications[i];
}
if (!status) {
real_status = mgr_wait_for_bridge_events(anotifications, count,
status = mgr_wait_for_bridge_events(anotifications, count,
&index,
args->args_mgr_wait.
utimeout);
}
CP_TO_USR(args->args_mgr_wait.pu_index, &index, status, 1);
return real_status;
return status;
}

/*
Expand Down

0 comments on commit d3d2043

Please sign in to comment.