Changeset c46bfbc in mainline for kernel/generic/src/proc/task.c


Ignore:
Timestamp:
2017-10-10T15:34:37Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
33f86a3
Parents:
cccd60c3
Message:

Allow caps_task_alloc() to fail

File:
1 edited

Legend:

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

    rcccd60c3 rc46bfbc  
    161161{
    162162        task_t *task = (task_t *) obj;
     163
     164        int rc = caps_task_alloc(task);
     165        if (rc != EOK)
     166                return rc;
    163167       
    164168        atomic_set(&task->refcount, 0);
     
    168172       
    169173        list_initialize(&task->threads);
    170        
    171         caps_task_alloc(task);
    172174       
    173175        ipc_answerbox_init(&task->answerbox, task);
Note: See TracChangeset for help on using the changeset viewer.