diff options
Diffstat (limited to 'pfinet/tunnel.c')
-rw-r--r-- | pfinet/tunnel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pfinet/tunnel.c b/pfinet/tunnel.c index c4f95804..ec96861a 100644 --- a/pfinet/tunnel.c +++ b/pfinet/tunnel.c @@ -469,8 +469,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, tdev = (struct tunnel_device *) cred->po->cntl->hook; /* We only deal with SELECT_READ here. */ - if (*type & ~SELECT_READ) - return EINVAL; + *type &= SELECT_READ; if (*type == 0) return 0; |