mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 06:28:22 +00:00
cpu: change _cpu()->thread calls to current_thread() to fix smp race
This commit is contained in:
@@ -50,8 +50,8 @@ syscallret_t syscall_linkat(context_t *, int olddirfd, char *uoldpath, int newdi
|
||||
goto cleanup;
|
||||
|
||||
vattr_t attr = {
|
||||
.gid = _cpu()->thread->proc->cred.gid,
|
||||
.uid = _cpu()->thread->proc->cred.uid,
|
||||
.gid = current_thread()->proc->cred.gid,
|
||||
.uid = current_thread()->proc->cred.uid,
|
||||
.mode = UMASK(0777)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user