- Timestamp:
- 2018-01-13T03:15:30Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36df27eb, 50f19b7
- Parents:
- b7fd2a0
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-13 03:15:24)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-13 03:15:30)
- Location:
- kernel/generic/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/ddi.c
rb7fd2a0 ra53ed3a 348 348 ddi_ioarg_t arg; 349 349 errno_t rc = copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); 350 if (rc != 0)350 if (rc != EOK) 351 351 return (sys_errno_t) rc; 352 352 … … 359 359 ddi_ioarg_t arg; 360 360 errno_t rc = copy_from_uspace(&arg, uspace_io_arg, sizeof(ddi_ioarg_t)); 361 if (rc != 0)361 if (rc != EOK) 362 362 return (sys_errno_t) rc; 363 363 -
kernel/generic/src/ipc/ops/datawrite.c
rb7fd2a0 ra53ed3a 58 58 call->buffer = (uint8_t *) malloc(size, 0); 59 59 errno_t rc = copy_from_uspace(call->buffer, (void *) src, size); 60 if (rc != 0) {60 if (rc != EOK) { 61 61 /* 62 62 * call->buffer will be cleaned up in ipc_call_free() at the -
kernel/generic/src/ipc/sysipc.c
rb7fd2a0 ra53ed3a 424 424 errno_t rc = copy_from_uspace(&call->data.args, &data->args, 425 425 sizeof(call->data.args)); 426 if (rc != 0) {426 if (rc != EOK) { 427 427 kobject_put(call->kobject); 428 428 kobject_put(kobj); … … 607 607 errno_t rc = copy_from_uspace(&newdata.args, &data->args, 608 608 sizeof(newdata.args)); 609 if (rc != 0)609 if (rc != EOK) 610 610 return (sys_errno_t) rc; 611 611 … … 697 697 errno_t rc = copy_from_uspace(&call->data.args, &data->args, 698 698 sizeof(call->data.args)); 699 if (rc != 0) {699 if (rc != EOK) { 700 700 /* 701 701 * Republish the capability so that the call does not get lost. -
kernel/generic/src/proc/program.c
rb7fd2a0 ra53ed3a 233 233 char namebuf[TASK_NAME_BUFLEN]; 234 234 errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len); 235 if (rc != 0)235 if (rc != EOK) 236 236 return (sys_errno_t) rc; 237 237 … … 241 241 program_t prg; 242 242 rc = program_create_loader(&prg, namebuf); 243 if (rc != 0)243 if (rc != EOK) 244 244 return rc; 245 245 -
kernel/generic/src/proc/task.c
rb7fd2a0 ra53ed3a 394 394 395 395 errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len); 396 if (rc != 0)396 if (rc != EOK) 397 397 return (sys_errno_t) rc; 398 398 … … 430 430 task_id_t taskid; 431 431 errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(taskid)); 432 if (rc != 0)432 if (rc != EOK) 433 433 return (sys_errno_t) rc; 434 434 -
kernel/generic/src/proc/thread.c
rb7fd2a0 ra53ed3a 938 938 char namebuf[THREAD_NAME_BUFLEN]; 939 939 errno_t rc = copy_from_uspace(namebuf, uspace_name, name_len); 940 if (rc != 0)940 if (rc != EOK) 941 941 return (sys_errno_t) rc; 942 942 … … 951 951 952 952 rc = copy_from_uspace(kernel_uarg, uspace_uarg, sizeof(uspace_arg_t)); 953 if (rc != 0) {953 if (rc != EOK) { 954 954 free(kernel_uarg); 955 955 return (sys_errno_t) rc; … … 962 962 rc = copy_to_uspace(uspace_thread_id, &thread->tid, 963 963 sizeof(thread->tid)); 964 if (rc != 0) {964 if (rc != EOK) { 965 965 /* 966 966 * We have encountered a failure, but the thread -
kernel/generic/src/security/perm.c
rb7fd2a0 ra53ed3a 162 162 sysarg64_t taskid; 163 163 errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t)); 164 if (rc != 0)164 if (rc != EOK) 165 165 return (sys_errno_t) rc; 166 166 … … 183 183 sysarg64_t taskid; 184 184 errno_t rc = copy_from_uspace(&taskid, uspace_taskid, sizeof(sysarg64_t)); 185 if (rc != 0)185 if (rc != EOK) 186 186 return (sys_errno_t) rc; 187 187 -
kernel/generic/src/udebug/udebug_ops.c
rb7fd2a0 ra53ed3a 556 556 mutex_unlock(&TASK->udebug.lock); 557 557 558 if (rc != 0)558 if (rc != EOK) 559 559 return rc; 560 560
Note:
See TracChangeset
for help on using the changeset viewer.