From 8adaf0da869a17ba37ab7d5cf4fddbf5d878978f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 21 Feb 2024 21:08:12 +0100 Subject: kernel: integrate the proc_ns_next fixes into proc_next --- src/kernel/vfs/procfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs/procfs.c') diff --git a/src/kernel/vfs/procfs.c b/src/kernel/vfs/procfs.c index 2e3130d..4bacaf7 100644 --- a/src/kernel/vfs/procfs.c +++ b/src/kernel/vfs/procfs.c @@ -82,7 +82,7 @@ openpath(const char *path, size_t len, Proc *root) static Proc * findgid(uint32_t gid, Proc *root) { - for (Proc *p = root; p; p = proc_next(p, root)) { + for (Proc *p = root; p; p = proc_next(root, p)) { if (p->globalid == gid) return p; } return NULL; @@ -156,7 +156,7 @@ procfs_accept(VfsReq *req) if (h->type == PhIntr) { proc_intr(p, buf, len); } else { - for (Proc *it = p->child; it; it = proc_next(it, p)) { + for (Proc *it = p->child; it; it = proc_next(p, it)) { proc_intr(it, buf, len); } } -- cgit v1.2.3