aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/random/randomdev_soft.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-02-26 18:33:23 +0000
committerXin LI <delphij@FreeBSD.org>2013-02-26 18:33:23 +0000
commit498b4407b9dbd8eac29cdbe337dea668e27eb671 (patch)
tree2b32733151591a42a1f0e02ea4544493c58cdaeb /sys/dev/random/randomdev_soft.c
parent7ad65edee343f79be93a1ec098d38a7881609e02 (diff)
Notes
Diffstat (limited to 'sys/dev/random/randomdev_soft.c')
-rw-r--r--sys/dev/random/randomdev_soft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev_soft.c b/sys/dev/random/randomdev_soft.c
index c720902c633e..420a82a67930 100644
--- a/sys/dev/random/randomdev_soft.c
+++ b/sys/dev/random/randomdev_soft.c
@@ -391,7 +391,7 @@ random_yarrow_block(int flag)
mtx_lock(&random_reseed_mtx);
/* Blocking logic */
- while (random_systat.seeded && !error) {
+ while (!random_systat.seeded && !error) {
if (flag & O_NONBLOCK)
error = EWOULDBLOCK;
else {