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