Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d470ec8 in mainline


Ignore:
Timestamp:
2017-10-28T08:53:08Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
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.