Changeset 05ffb41 in mainline for kernel/generic/src/ipc/kbox.c
- Timestamp:
- 2017-08-17T19:11:14Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1c85bae
- Parents:
- 7e3826d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/kbox.c
r7e3826d9 r05ffb41 206 206 * cleanup code. 207 207 * 208 * @return Phone idon success, or negative error code.208 * @return Phone capability on success, or negative error code. 209 209 * 210 210 */ … … 236 236 } 237 237 238 int newphid= phone_alloc(TASK);239 if ( newphid< 0) {238 int cap = phone_alloc(TASK); 239 if (cap < 0) { 240 240 mutex_unlock(&task->kb.cleanup_lock); 241 241 return ELIMIT; … … 243 243 244 244 /* Connect the newly allocated phone to the kbox */ 245 (void) ipc_phone_connect( &TASK->phones[newphid], &task->kb.box);245 (void) ipc_phone_connect(phone_get_current(cap), &task->kb.box); 246 246 247 247 if (task->kb.thread != NULL) { 248 248 mutex_unlock(&task->kb.cleanup_lock); 249 return newphid;249 return cap; 250 250 } 251 251 … … 263 263 mutex_unlock(&task->kb.cleanup_lock); 264 264 265 return newphid;265 return cap; 266 266 } 267 267
Note:
See TracChangeset
for help on using the changeset viewer.