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


Ignore:
Timestamp:
2025-01-16T17:27:32Z (29 hours ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
df721df
Parents:
96368f56
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-01-16 14:30:47)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-01-16 17:27:32)
Message:

Bulk clear capabilities when task terminates or is destroyed

File:
1 edited

Legend:

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

    r96368f56 rfa3ed5b  
    201201                return NULL;
    202202
     203        if (caps_task_init(task) != EOK) {
     204                slab_free(task_cache, task);
     205                return NULL;
     206        }
     207
    203208        refcount_init(&task->refcount);
    204209
     
    212217        task->ucycles = 0;
    213218        task->kcycles = 0;
    214 
    215         caps_task_init(task);
    216219
    217220        task->ipc_info.call_sent = 0;
     
    287290         */
    288291        as_release(task->as);
     292
     293        caps_task_clear(task);
    289294
    290295        slab_free(task_cache, task);
Note: See TracChangeset for help on using the changeset viewer.