Changeset eab9689 in mainline
- Timestamp:
- 2015-06-03T15:36:08Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 022d72ff
- Parents:
- 53031c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ops/conctmeto.c
r53031c2 reab9689 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 if (IPC_GET_RETVAL(answer->data) && ((int) answer->priv >= 0)) { 77 /* 78 * Something went wrong and there is a phone that needs to be 79 * deallocated. 80 */ 76 81 phone_dealloc(answer->priv); 77 else82 } else { 78 83 IPC_SET_ARG5(answer->data, answer->priv); 84 } 79 85 80 86 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.