Changeset d470ec8 in mainline for kernel/generic/src/ipc/ipc.c


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

Maintain phone kobject reference for call_t::caller_phone

File:
1 edited

Legend:

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

    rd088616 rd470ec8  
    9797                if (call->buffer)
    9898                        free(call->buffer);
     99                if (call->caller_phone)
     100                        kobject_put(call->caller_phone->kobject);
    99101                slab_free(call_slab, call);
    100102        }
     
    346348
    347349        call->caller_phone = phone;
     350        kobject_add_ref(phone->kobject);
    348351
    349352        if (preforget) {
Note: See TracChangeset for help on using the changeset viewer.