summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
authordzwdz2024-02-21 21:08:12 +0100
committerdzwdz2024-02-21 21:08:12 +0100
commit8adaf0da869a17ba37ab7d5cf4fddbf5d878978f (patch)
treef18336efbb97c7016a170722b84c6838f7cab8ba /src/kernel/syscalls.c
parent4b8f771d6ec926f95ec017c427348013d4c1872c (diff)
kernel: integrate the proc_ns_next fixes into proc_next
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index 5f53ccb..343f45c 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -367,7 +367,7 @@ int _sys_intr(const char __user *msg, size_t len) {
if (pcpy_from(proc_cur, buf, msg, len) < len) {
SYSCALL_RETURN(-EFAULT);
}
- for (Proc *p = proc_cur->child; p; p = proc_next(p, proc_cur)) {
+ for (Proc *p = proc_cur->child; p; p = proc_next(proc_cur, p)) {
proc_intr(p, buf, len);
count++;
}