diff options
author | 2009-10-31 06:40:14 +0000 | |
---|---|---|
committer | 2009-10-31 06:40:14 +0000 | |
commit | ade004edddcdab33faee7c7b5833d2bf917e71c0 (patch) | |
tree | ceb3b05d41e8166040fd547fb2bc9003e1c8d18b /sys/dev/usb/ugen.c | |
parent | If the nmea(4) or endrun(4) timing disciplines are selected ignore status (diff) | |
download | wireguard-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.c | 4 |
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 |