summaryrefslogtreecommitdiff
path: root/sys/miscfs/specfs/spec_vnops.c
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-11-29 17:05:07 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-11-29 17:05:07 +0000
commitfb632683a18d1b7eb7185cb786fb306b69e3862b (patch)
tree3264aa855e14514afaa4f7a045b39a2c2742a84d /sys/miscfs/specfs/spec_vnops.c
parente8e707bd754b6d2d69f1c9aa28b322e022cf23d4 (diff)
Don't use seltrue() in poll ops since it requires v_rdev dereferencing
which is not possible here. Problem found and fixed by form@. ok millert@ fgsch@ pedro@
Diffstat (limited to 'sys/miscfs/specfs/spec_vnops.c')
-rw-r--r--sys/miscfs/specfs/spec_vnops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c
index c3e675b5905..91861a87d57 100644
--- a/sys/miscfs/specfs/spec_vnops.c
+++ b/sys/miscfs/specfs/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.27 2003/09/23 16:51:13 millert Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.28 2004/11/29 17:05:05 grange Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -464,7 +464,8 @@ spec_poll(v)
switch (ap->a_vp->v_type) {
default:
- return (seltrue(ap->a_vp->v_rdev, ap->a_events, ap->a_p));
+ return (ap->a_events &
+ (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
case VCHR:
dev = ap->a_vp->v_rdev;