diff options
Diffstat (limited to 'sys/amd64/cloudabi32/cloudabi32_sysvec.c')
-rw-r--r-- | sys/amd64/cloudabi32/cloudabi32_sysvec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/cloudabi32/cloudabi32_sysvec.c b/sys/amd64/cloudabi32/cloudabi32_sysvec.c index 5d21426e3ee9..5f04c35a5c72 100644 --- a/sys/amd64/cloudabi32/cloudabi32_sysvec.c +++ b/sys/amd64/cloudabi32/cloudabi32_sysvec.c @@ -104,7 +104,6 @@ cloudabi32_fetch_syscall_args(struct thread *td) if (sa->code >= CLOUDABI32_SYS_MAXSYSCALL) return (ENOSYS); sa->callp = &cloudabi32_sysent[sa->code]; - sa->narg = sa->callp->sy_narg; /* * Fetch system call arguments. @@ -117,7 +116,7 @@ cloudabi32_fetch_syscall_args(struct thread *td) * implementation used by 64-bit processes. */ error = copyin((void *)frame->tf_rcx, sa->args, - sa->narg * sizeof(sa->args[0])); + sa->callp->sy_narg * sizeof(sa->args[0])); if (error != 0) return (error); |