From 86936eba803f0ae2cade1d704dbb8b6f3fb96974 Mon Sep 17 00:00:00 2001 From: kib Date: Sun, 2 Mar 2008 14:00:50 +0000 Subject: [PATCH] Return ENOSYS instead of 0 for the unknown futex operations. Submitted by: rdivacky Reported and tested by: Gary Stanley --- sys/compat/linux/linux_futex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index be719b8dbad..be052069f1d 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -327,7 +327,7 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args) default: printf("linux_sys_futex: unknown op %d\n", args->op); - break; + return (ENOSYS); } return (0); } -- 2.45.0