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:
@@ -9,7 +9,7 @@
|
||||
// vnode should be locked
|
||||
static int dostat(vnode_t *vnode, stat_t *stat) {
|
||||
vattr_t attr;
|
||||
int e = VOP_GETATTR(vnode, &attr, &_cpu()->thread->proc->cred);
|
||||
int e = VOP_GETATTR(vnode, &attr, ¤t_thread()->proc->cred);
|
||||
if (e)
|
||||
return e;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user