summaryrefslogtreecommitdiffstats
path: root/sys/amd64/linux/linux_sysvec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/linux/linux_sysvec.c')
-rw-r--r--sys/amd64/linux/linux_sysvec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c
index 1d4c710..1c19018 100644
--- a/sys/amd64/linux/linux_sysvec.c
+++ b/sys/amd64/linux/linux_sysvec.c
@@ -254,10 +254,10 @@ linux_fetch_syscall_args(struct thread *td, struct syscall_args *sa)
sa->args[5] = frame->tf_r9;
sa->code = frame->tf_rax;
- if (sa->code >= p->p_sysent->sv_size) {
- PROC_LOCK(p);
- sigexit(td, SIGILL);
- } else
+ if (sa->code >= p->p_sysent->sv_size)
+ /* nosys */
+ sa->callp = &p->p_sysent->sv_table[LINUX_SYS_MAXSYSCALL];
+ else
sa->callp = &p->p_sysent->sv_table[sa->code];
sa->narg = sa->callp->sy_narg;
OpenPOWER on IntegriCloud