summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-09-23 06:12:15 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-09-23 06:12:15 +0000
commit1ea57800e0e76824bbf3417e890c7cab3285ff6c (patch)
tree262d99171d0a09d08f99239391589ca1313dc039 /sys/dev/usb
parentdd193077bf1771ede04d1ae29e4478a37fa1b399 (diff)
Add dummy FIOASYNC handler.
Without it uhid_do_ioctl() will return EINVAL which will make the upper layer assume that uhid node do not support non-blocking reads. Fix a regression introduced by the removal of SIGIO support. Reported by many, fix tested by Bryan Linton, Micah Muer and Nam Nguyen.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/uhid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index 184f30879e9..d7761677c69 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhid.c,v 1.68 2017/07/20 16:54:45 mpi Exp $ */
+/* $OpenBSD: uhid.c,v 1.69 2017/09/23 06:12:14 mpi Exp $ */
/* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -359,6 +359,7 @@ uhid_do_ioctl(struct uhid_softc *sc, u_long cmd, caddr_t addr,
switch (cmd) {
case FIONBIO:
+ case FIOASYNC:
/* All handled in the upper FS layer. */
break;