Changes in kernel/generic/src/syscall/copy.c [fac0ac7:1433ecda] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/syscall/copy.c
rfac0ac7 r1433ecda 90 90 THREAD->in_copy_from_uspace = true; 91 91 92 rc = !memcpy_from_uspace(dst, uspace_src, size) ? EPERM : EOK;92 rc = memcpy_from_uspace(dst, uspace_src, size); 93 93 94 94 THREAD->in_copy_from_uspace = false; 95 95 96 96 interrupts_restore(ipl); 97 return rc;97 return !rc ? EPERM : EOK; 98 98 } 99 99 … … 141 141 THREAD->in_copy_to_uspace = true; 142 142 143 rc = !memcpy_to_uspace(uspace_dst, src, size) ? EPERM : EOK;143 rc = memcpy_to_uspace(uspace_dst, src, size); 144 144 145 145 THREAD->in_copy_to_uspace = false; 146 146 147 147 interrupts_restore(ipl); 148 return rc;148 return !rc ? EPERM : 0; 149 149 } 150 150
Note:
See TracChangeset
for help on using the changeset viewer.