From fb632683a18d1b7eb7185cb786fb306b69e3862b Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Mon, 29 Nov 2004 17:05:07 +0000 Subject: 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@ --- sys/msdosfs/msdosfs_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/msdosfs') 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)); } /* -- cgit v1.2.3