diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 06e8e98a261c..328a9b1526d3 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -330,9 +330,9 @@ vop_stdpoll(ap) struct proc *a_p; } */ *ap; { - if ((ap->a_events & ~POLLSTANDARD) == 0) - return (ap->a_events & (POLLRDNORM|POLLWRNORM)); - return (vn_pollrecord(ap->a_vp, ap->a_p, ap->a_events)); + if (ap->a_events & ~POLLSTANDARD) + return (vn_pollrecord(ap->a_vp, ap->a_p, ap->a_events)); + return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)); } /*