diff options
author | delphij <delphij@FreeBSD.org> | 2013-02-26 18:33:23 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-02-26 18:33:23 +0000 |
commit | c3efc41585ab7a15225bee79375a4d44f17134b6 (patch) | |
tree | 2b32733151591a42a1f0e02ea4544493c58cdaeb /sys/dev | |
parent | c5fb029c1b26ee84a23de3dd18aa71cb210fdf72 (diff) | |
download | FreeBSD-src-c3efc41585ab7a15225bee79375a4d44f17134b6.zip FreeBSD-src-c3efc41585ab7a15225bee79375a4d44f17134b6.tar.gz |
Correct a typo introduced in r153575, which gives inverted logic when
handling blocking semantics when seeding.
PR: kern/143298
Submitted by: James Juran <james juran baesystems com>
Reviewed by: markm
MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/random/randomdev_soft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev_soft.c b/sys/dev/random/randomdev_soft.c index c720902..420a82a 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 { |