summaryrefslogtreecommitdiffstats
path: root/sys/dev/random
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-09-21 22:46:54 +0000
committerjhb <jhb@FreeBSD.org>2001-09-21 22:46:54 +0000
commit69b2d3f3db54f4cde3dd60308204bdabacae595d (patch)
tree057f0cd831e7571064316d6cd028a7bac4d0448f /sys/dev/random
parent5954be75cafd9af8c37554c9128a4910deb3f77e (diff)
downloadFreeBSD-src-69b2d3f3db54f4cde3dd60308204bdabacae595d.zip
FreeBSD-src-69b2d3f3db54f4cde3dd60308204bdabacae595d.tar.gz
Use the passed in thread to selrecord() instead of curthread.
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/randomdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index 868d72f..a0bd578 100644
--- a/sys/dev/random/randomdev.c
+++ b/sys/dev/random/randomdev.c
@@ -224,7 +224,7 @@ random_poll(dev_t dev, int events, struct thread *td)
if (random_systat.seeded)
revents = events & (POLLIN | POLLRDNORM);
else
- selrecord(curthread, &random_systat.rsel);
+ selrecord(td, &random_systat.rsel);
}
return revents;
}
OpenPOWER on IntegriCloud