Use implicitly passed _caller_pid in syscalls
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
#include "dev/dev.h"
|
||||
#include "proc/proc.h"
|
||||
#include "storedev/storedev.h"
|
||||
#include "util/util.h"
|
||||
|
||||
int32_t SYSCALL4(sys_vfsmount, mountpoint1, fstypestr1, devid1, format1) {
|
||||
int32_t ret = E_OK;
|
||||
@ -35,7 +36,8 @@ int32_t SYSCALL4(sys_vfsmount, mountpoint1, fstypestr1, devid1, format1) {
|
||||
}
|
||||
|
||||
spinlock_acquire(&PROCS.spinlock);
|
||||
Proc *proc = PROCS.current;
|
||||
Proc *proc = NULL;
|
||||
LL_FINDPROP(PROCS.procs, proc, pid, _caller_pid);
|
||||
spinlock_release(&PROCS.spinlock);
|
||||
|
||||
Dev *dp = proc->devs[*dev];
|
||||
|
||||
Reference in New Issue
Block a user