mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 14:08:21 +00:00
cpu: change _cpu()->thread calls to current_thread() to fix smp race
This commit is contained in:
@@ -38,7 +38,7 @@ syscallret_t syscall_faccessat(context_t *, int dirfd, char *upath, int mode, in
|
||||
if (ret.errno)
|
||||
goto cleanup;
|
||||
|
||||
ret.errno = VOP_ACCESS(node, mode, &_cpu()->thread->proc->cred);
|
||||
ret.errno = VOP_ACCESS(node, mode, ¤t_thread()->proc->cred);
|
||||
VOP_UNLOCK(node);
|
||||
ret.ret = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user