summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_default.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-07-02 22:20:07 +0000
committernicm <nicm@openbsd.org>2011-07-02 22:20:07 +0000
commitb8d5a5fb3cd18b5becb179d749e65fc04a659093 (patch)
treea14bf2c9e20868318f34cb59c7793894408769bf /sys/kern/vfs_default.c
parentPer recommandation in the the sparc docs, use unlocked reads when (diff)
downloadwireguard-openbsd-b8d5a5fb3cd18b5becb179d749e65fc04a659093.tar.xz
wireguard-openbsd-b8d5a5fb3cd18b5becb179d749e65fc04a659093.zip
kqueue attach functions should return an errno or 0, not a plain 1. Fix
the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
Diffstat (limited to 'sys/kern/vfs_default.c')
-rw-r--r--sys/kern/vfs_default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c
index 32527afcdb7..f43f3f90fd6 100644
--- a/sys/kern/vfs_default.c
+++ b/sys/kern/vfs_default.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_default.c,v 1.37 2008/05/03 14:41:29 thib Exp $ */
+/* $OpenBSD: vfs_default.c,v 1.38 2011/07/02 22:20:08 nicm Exp $ */
/*
* Portions of this code are:
@@ -200,7 +200,7 @@ vop_generic_kqfilter(void *v)
kn->kn_fop = &generic_filtops;
break;
default:
- return (1);
+ return (EINVAL);
}
return (0);