summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ugen.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-10-31 06:40:14 +0000
committerderaadt <deraadt@openbsd.org>2009-10-31 06:40:14 +0000
commitade004edddcdab33faee7c7b5833d2bf917e71c0 (patch)
treeceb3b05d41e8166040fd547fb2bc9003e1c8d18b /sys/dev/usb/ugen.c
parentIf the nmea(4) or endrun(4) timing disciplines are selected ignore status (diff)
downloadwireguard-openbsd-ade004edddcdab33faee7c7b5833d2bf917e71c0.tar.xz
wireguard-openbsd-ade004edddcdab33faee7c7b5833d2bf917e71c0.zip
Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()
calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
Diffstat (limited to 'sys/dev/usb/ugen.c')
-rw-r--r--sys/dev/usb/ugen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c
index c4998f7e2fd..c90c58dcc5a 100644
--- a/sys/dev/usb/ugen.c
+++ b/sys/dev/usb/ugen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ugen.c,v 1.59 2009/10/13 19:33:17 pirofti Exp $ */
+/* $OpenBSD: ugen.c,v 1.60 2009/10/31 06:40:17 deraadt Exp $ */
/* $NetBSD: ugen.c,v 1.63 2002/11/26 18:49:48 christos Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -822,6 +822,7 @@ ugenintr(usbd_xfer_handle xfer, usbd_private_handle addr, usbd_status status)
wakeup(sce);
}
selwakeup(&sce->rsel);
+ KNOTE(&sce->rsel.si_note, 0);
}
void
@@ -881,6 +882,7 @@ ugen_isoc_rintr(usbd_xfer_handle xfer, usbd_private_handle addr,
wakeup(sce);
}
selwakeup(&sce->rsel);
+ KNOTE(&sce->rsel.si_note, 0);
}
usbd_status