summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
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++;
}