From 36ff2bec406d81461af8caaa00b2340ea0b8ef82 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 27 Nov 2008 16:03:16 +0100 Subject: [PATCH] acall: move syscall nr limit up Signed-off-by: Jens Axboe --- kernel/acall.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/acall.c b/kernel/acall.c index 4acc37857d07..ef698c0c4047 100644 --- a/kernel/acall.c +++ b/kernel/acall.c @@ -140,7 +140,12 @@ static long call_syscall(struct acall_submission *sub) long); extern syscall_fn_t sys_call_table[]; - if (sub->nr >= 290) /* hee, x86-64 */ + /* + * Obviously this needs some real way of checking for a valid + * syscall number. Aditionally, we also want to do some syscalls + * always sync + */ + if (sub->nr >= 295) /* hee, x86-64 */ return -ENOSYS; else return sys_call_table[sub->nr](sub->args[0], sub->args[1], -- 2.25.1