Changeset 6deb2cd in mainline for kernel/generic/src/ipc/sysipc.c
- Timestamp:
- 2017-12-08T21:17:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9233e9d
- Parents:
- 125c09c
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-07 16:46:52)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-08 21:17:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/sysipc.c
r125c09c r6deb2cd 744 744 * for explanation. 745 745 * 746 * @return Capability handle of the received request.747 * @return CAP_NIL for answers, notifications and when there is no call.748 746 * @return Negative error code on error. 749 747 */ … … 767 765 768 766 if (!call) { 769 STRUCT_TO_USPACE(calldata, &(ipc_data_t){}); 770 return CAP_NIL; 767 ipc_data_t data = {0}; 768 data.cap_handle = CAP_NIL; 769 STRUCT_TO_USPACE(calldata, &data); 770 return EOK; 771 771 } 772 772 … … 776 776 777 777 call->data.flags = IPC_CALL_NOTIF; 778 call->data.cap_handle = CAP_NIL; 778 779 779 780 STRUCT_TO_USPACE(calldata, &call->data); 780 781 kobject_put(call->kobject); 781 782 782 return CAP_NIL;783 return EOK; 783 784 } 784 785 … … 792 793 793 794 call->data.flags = IPC_CALL_ANSWERED; 795 call->data.cap_handle = CAP_NIL; 794 796 795 797 STRUCT_TO_USPACE(calldata, &call->data); 796 798 kobject_put(call->kobject); 797 799 798 return CAP_NIL;800 return EOK; 799 801 } 800 802 … … 809 811 } 810 812 813 call->data.cap_handle = handle; 814 811 815 /* 812 816 * Include phone hash of the caller in the request, copy the whole … … 819 823 kobject_add_ref(call->kobject); 820 824 cap_publish(TASK, handle, call->kobject); 821 return handle;825 return EOK; 822 826 823 827 error:
Note:
See TracChangeset
for help on using the changeset viewer.