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