diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-03 08:24:54 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-04-03 08:24:54 +0000 |
commit | cfb846bac4c3dfe0d8d8342efa2085b5875cce2e (patch) | |
tree | 1330e292684c8a0648b3a1210c05f098cf8e0a3c /sys/dev/acpi/acpi.c | |
parent | 61c63041e19b0f38cfdd84f383a121384856ff80 (diff) |
Fix incoherencies of errors returned by various *kqfilter routines.
EOPNOTSUPP is returned when there's no "filterops" for a given fd.
EINVAL when the requested filter isn't supported by the "filterops".
ENXIO means the underlying device is no longer valid/present.
ok visa@
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 1514bb81db6..a17ca8c6a14 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.378 2020/02/20 16:56:52 visa Exp $ */ +/* $OpenBSD: acpi.c,v 1.379 2020/04/03 08:24:52 mpi Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -3539,7 +3539,7 @@ acpiioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) int acpikqfilter(dev_t dev, struct knote *kn) { - return (ENXIO); + return (EOPNOTSUPP); } #endif /* SMALL_KERNEL */ |