Changeset 7cf8522 in mainline for kernel/generic/src/ipc/ipc.c


Ignore:
Timestamp:
2017-10-28T08:55:10Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
15d9fe6
Parents:
3dab10ae
Message:

Unpublish and free phone and IRQ capabilities in ipc_cleanup()

File:
1 edited

Legend:

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

    r3dab10ae r7cf8522  
    829829{
    830830        ipc_phone_hangup(cap->kobject->phone);
     831        kobject_t *kobj = cap_unpublish_locked(cap->task, cap->handle,
     832            KOBJECT_TYPE_PHONE);
     833        kobject_put(kobj);
     834        cap_free_locked(cap->task, cap->handle);
    831835        return true;
    832836}
     
    835839{
    836840        ipc_irq_unsubscribe(&TASK->answerbox, cap->handle);
     841        kobject_t *kobj = cap_unpublish_locked(cap->task, cap->handle,
     842            KOBJECT_TYPE_IRQ);
     843        kobject_put(kobj);
     844        cap_free_locked(cap->task, cap->handle);
    837845        return true;
    838846}
Note: See TracChangeset for help on using the changeset viewer.