From 1e261597a5c5f9803a65a5b13dd71d33d501f010 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 18 Jan 2023 23:18:49 +0100 Subject: kernel: add a root argument to process_next --- src/kernel/vfs/procfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/vfs') 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; -- cgit v1.2.3