diff options
author | 2017-09-23 06:12:14 +0000 | |
---|---|---|
committer | 2017-09-23 06:12:14 +0000 | |
commit | bbdb0ce0879f8e4a9cb602b81a44507f3273e0d3 (patch) | |
tree | 2e16a4c947cf46b4769d82d87fd63f3989847a2e | |
parent | Fix controller locking so that it covers the DMA map and bounce buffer. (diff) | |
download | wireguard-openbsd-bbdb0ce0879f8e4a9cb602b81a44507f3273e0d3.tar.xz wireguard-openbsd-bbdb0ce0879f8e4a9cb602b81a44507f3273e0d3.zip |
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.
-rw-r--r-- | sys/dev/usb/uhid.c | 3 |
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; |