mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 14:38:21 +00:00
cpu: change _cpu()->thread calls to current_thread() to fix smp race
This commit is contained in:
@@ -8,7 +8,7 @@ syscallret_t syscall_getresgid(context_t *, gid_t *gidp, gid_t *egidp, gid_t *sg
|
||||
};
|
||||
|
||||
int gid, egid, sgid;
|
||||
cred_getgids(&_cpu()->thread->proc->cred, &gid, &egid, &sgid);
|
||||
cred_getgids(¤t_thread()->proc->cred, &gid, &egid, &sgid);
|
||||
|
||||
ret.errno = usercopy_touser(gidp, &gid, sizeof(gid));
|
||||
if (ret.errno)
|
||||
|
||||
Reference in New Issue
Block a user