summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf.c2
-rw-r--r--sys/net/if_tap.c2
-rw-r--r--sys/net/if_tun.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 874fcb6..68e5308 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -990,7 +990,7 @@ bpfpoll(dev, events, td)
if (d->bd_hlen != 0 || (d->bd_immediate && d->bd_slen != 0))
revents |= events & (POLLIN | POLLRDNORM);
else
- selrecord(curthread, &d->bd_sel);
+ selrecord(td, &d->bd_sel);
}
BPFD_UNLOCK(d);
return (revents);
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index f41fbd3..b20de71 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -935,7 +935,7 @@ tappoll(dev, events, td)
TAPDEBUG("%s%d waiting for data, minor = %#x\n",
ifp->if_name, ifp->if_unit, minor(dev));
- selrecord(curthread, &tp->tap_rsel);
+ selrecord(td, &tp->tap_rsel);
}
}
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 92bf7f6..20f7437 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -809,7 +809,7 @@ tunpoll(dev_t dev, int events, struct thread *td)
} else {
TUNDEBUG("%s%d: tunpoll waiting\n", ifp->if_name,
ifp->if_unit);
- selrecord(curthread, &tp->tun_rsel);
+ selrecord(td, &tp->tun_rsel);
}
}
if (events & (POLLOUT | POLLWRNORM))
OpenPOWER on IntegriCloud