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:
@@ -12,7 +12,7 @@ static void open(file_t *file, vnode_t *node, int flags) {
|
||||
file->offset = 0;
|
||||
file->mode = 0777;
|
||||
VOP_LOCK(node);
|
||||
VOP_OPEN(&node, fileflagstovnodeflags(flags) | V_FFLAGS_NONBLOCKING, &_cpu()->thread->proc->cred);
|
||||
VOP_OPEN(&node, fileflagstovnodeflags(flags) | V_FFLAGS_NONBLOCKING, ¤t_thread()->proc->cred);
|
||||
VOP_UNLOCK(node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user