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


Ignore:
Timestamp:
2025-01-16T21:42:15Z (20 hours ago)
Author:
GitHub <noreply@…>
Parents:
e0e2264 (diff), 455241b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-01-16 21:42:15)
git-committer:
GitHub <noreply@…> (2025-01-16 21:42:15)
Message:

Merge 455241b37bedd3719ed3b5b025fdf26f44fd565b into e0e22648f5799cc98671695e153b0b00037daeb9

File:
1 edited

Legend:

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

    re0e2264 r6caf5fb  
    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;
     
    248251                }
    249252
    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);
    253256        }
    254257
     
    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.