summaryrefslogtreecommitdiff
path: root/src/kernel/vfs
diff options
context:
space:
mode:
authordzwdz2023-01-18 23:18:49 +0100
committerdzwdz2023-01-18 23:18:49 +0100
commit1e261597a5c5f9803a65a5b13dd71d33d501f010 (patch)
tree50de2741a4917e21427c7920fa33e0372129de92 /src/kernel/vfs
parentec81fa16d837f430add92b4d2ee4bd3727ca6c6d (diff)
kernel: add a root argument to process_next
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r--src/kernel/vfs/procfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/vfs/procfs.c b/src/kernel/vfs/procfs.c
index 0f65f93..5837012 100644
--- a/src/kernel/vfs/procfs.c
+++ b/src/kernel/vfs/procfs.c
@@ -45,7 +45,7 @@ openpath(const char *path, size_t len, struct process *p)
static struct process *
findgid(uint32_t gid, struct process *root)
{
- for (struct process *p = root; p; p = process_next(p)) {
+ for (struct process *p = root; p; p = process_next(p, root)) {
if (p->globalid == gid) return p;
}
return NULL;