summaryrefslogtreecommitdiff
path: root/sys/msdosfs
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/msdosfs
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/msdosfs')
-rw-r--r--sys/msdosfs/msdosfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c
index ad48c064ba8..4670f3ded45 100644
--- a/sys/msdosfs/msdosfs_vnops.c
+++ b/sys/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vnops.c,v 1.47 2004/09/18 22:01:18 tedu Exp $ */
+/* $OpenBSD: msdosfs_vnops.c,v 1.48 2004/11/29 17:05:06 grange Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */
/*-
@@ -717,7 +717,7 @@ msdosfs_poll(v)
struct proc *a_p;
} */ *ap = v;
- return (seltrue(ap->a_vp->v_rdev, ap->a_events, ap->a_p));
+ return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
}
/*