Changeset fb4d788 in mainline for kernel/generic/src/ipc/ops/conctmeto.c
- Timestamp:
- 2015-07-28T11:28:14Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6accc5cf
- Parents:
- df2bce32 (diff), 47726b5e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/conctmeto.c
rdf2bce32 rfb4d788 44 44 int newphid = phone_alloc(TASK); 45 45 46 /* Remember the phoneid or the error. */ 47 call->priv = newphid; 46 48 if (newphid < 0) 47 49 return ELIMIT; … … 49 51 /* Set arg5 for server */ 50 52 IPC_SET_ARG5(call->data, (sysarg_t) &TASK->phones[newphid]); 51 call->priv = newphid;52 53 53 54 return EOK; … … 73 74 static int answer_process(call_t *answer) 74 75 { 75 if (IPC_GET_RETVAL(answer->data)) 76 phone_dealloc(answer->priv); 77 else 78 IPC_SET_ARG5(answer->data, answer->priv); 76 int newphid = (int) answer->priv; 77 78 if (IPC_GET_RETVAL(answer->data)) { 79 if (newphid >= 0) { 80 /* 81 * The phone was indeed allocated and now needs 82 * to be deallocated. 83 */ 84 phone_dealloc(newphid); 85 } 86 } else { 87 IPC_SET_ARG5(answer->data, newphid); 88 } 79 89 80 90 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.