Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/syscall/copy.c

    r1433ecda rfac0ac7  
    9090        THREAD->in_copy_from_uspace = true;
    9191
    92         rc = memcpy_from_uspace(dst, uspace_src, size);
     92        rc = !memcpy_from_uspace(dst, uspace_src, size) ? EPERM : EOK;
    9393
    9494        THREAD->in_copy_from_uspace = false;
    9595
    9696        interrupts_restore(ipl);
    97         return !rc ? EPERM : EOK;
     97        return rc;
    9898}
    9999
     
    141141        THREAD->in_copy_to_uspace = true;
    142142
    143         rc = memcpy_to_uspace(uspace_dst, src, size);
     143        rc = !memcpy_to_uspace(uspace_dst, src, size) ? EPERM : EOK;
    144144
    145145        THREAD->in_copy_to_uspace = false;
    146146
    147147        interrupts_restore(ipl);
    148         return !rc ? EPERM : 0;
     148        return rc;
    149149}
    150150
Note: See TracChangeset for help on using the changeset viewer.