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/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/syscalls.c') 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++; } -- cgit v1.2.3