Changes in kernel/generic/src/proc/task.c [455241b:07d4271] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
r455241b r07d4271 201 201 return NULL; 202 202 203 if (caps_task_init(task) != EOK) {204 slab_free(task_cache, task);205 return NULL;206 }207 208 203 refcount_init(&task->refcount); 209 204 … … 217 212 task->ucycles = 0; 218 213 task->kcycles = 0; 214 215 caps_task_init(task); 219 216 220 217 task->ipc_info.call_sent = 0; … … 251 248 } 252 249 253 phone_t *phone = phone_from_kobject(254 kobject_get(task, phone_handle, KOBJECT_TYPE_PHONE));255 (void) ipc_phone_connect(phone , ipc_box_0);250 kobject_t *phone_obj = kobject_get(task, phone_handle, 251 KOBJECT_TYPE_PHONE); 252 (void) ipc_phone_connect(phone_obj->phone, ipc_box_0); 256 253 } 257 254 … … 290 287 */ 291 288 as_release(task->as); 292 293 caps_task_clear(task);294 289 295 290 slab_free(task_cache, task);
Note:
See TracChangeset
for help on using the changeset viewer.