Ignore:
Timestamp:
2017-12-18T17:40:52Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2024096, 23d45152
Parents:
6a32cc5f
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-18 15:39:01)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-18 17:40:52)
Message:

Return phones/capabilities separately from error codes.

File:
1 edited

Legend:

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

    r6a32cc5f r09d01f2  
    4242static int request_process(call_t *call, answerbox_t *box)
    4343{
    44         cap_handle_t phone_handle = phone_alloc(TASK);
    45 
    46         IPC_SET_ARG5(call->data, phone_handle);
    47        
    48         return EOK;
     44        cap_handle_t phone_handle;
     45        int rc = phone_alloc(TASK, &phone_handle);
     46        IPC_SET_ARG5(call->data, (rc == EOK) ? phone_handle : -1);
     47        return 0;
    4948}
    5049
Note: See TracChangeset for help on using the changeset viewer.