diff options
author | dzwdz | 2024-02-21 21:08:12 +0100 |
---|---|---|
committer | dzwdz | 2024-02-21 21:08:12 +0100 |
commit | 8adaf0da869a17ba37ab7d5cf4fddbf5d878978f (patch) | |
tree | f18336efbb97c7016a170722b84c6838f7cab8ba /src/kernel/vfs/procfs.c | |
parent | 4b8f771d6ec926f95ec017c427348013d4c1872c (diff) |
kernel: integrate the proc_ns_next fixes into proc_next
Diffstat (limited to 'src/kernel/vfs/procfs.c')
-rw-r--r-- | src/kernel/vfs/procfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |