Changeset 88db88d in mainline for kernel/generic/src/ipc/ipcrsc.c


Ignore:
Timestamp:
2017-08-20T17:26:12Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a45bf09
Parents:
e68765e
Message:

Do not access the capability table directly in phone_alloc()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ipcrsc.c

    re68765e r88db88d  
    206206        if (handle >= 0) {
    207207                irq_spinlock_lock(&task->lock, true);
    208                 cap_t *cap = &task->caps[handle];
     208                cap_t *cap = cap_get(task, handle, CAP_TYPE_ALLOCATED);
    209209                ipc_phone_init(&cap->phone, task);
    210210                cap->type = CAP_TYPE_PHONE;
Note: See TracChangeset for help on using the changeset viewer.