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
This commit is contained in:
Xin LI 2013-02-26 18:33:23 +00:00
parent 7ad65edee3
commit 498b4407b9

View File

@ -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 {