mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
cpu: change _cpu()->thread calls to current_thread() to fix smp race
This commit is contained in:
@@ -10,7 +10,7 @@ syscallret_t syscall_chroot(context_t *, char *upath) {
|
||||
.ret = -1
|
||||
};
|
||||
|
||||
ret.errno = auth_system_check(&_cpu()->thread->proc->cred, AUTH_ACTIONS_SYSTEM_CHROOT);
|
||||
ret.errno = auth_system_check(¤t_thread()->proc->cred, AUTH_ACTIONS_SYSTEM_CHROOT);
|
||||
if (ret.errno)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user