Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/task.c

    r455241b r07d4271  
    201201                return NULL;
    202202
    203         if (caps_task_init(task) != EOK) {
    204                 slab_free(task_cache, task);
    205                 return NULL;
    206         }
    207 
    208203        refcount_init(&task->refcount);
    209204
     
    217212        task->ucycles = 0;
    218213        task->kcycles = 0;
     214
     215        caps_task_init(task);
    219216
    220217        task->ipc_info.call_sent = 0;
     
    251248                }
    252249
    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);
    256253        }
    257254
     
    290287         */
    291288        as_release(task->as);
    292 
    293         caps_task_clear(task);
    294289
    295290        slab_free(task_cache, task);
Note: See TracChangeset for help on using the changeset viewer.