From c3efc41585ab7a15225bee79375a4d44f17134b6 Mon Sep 17 00:00:00 2001 From: delphij Date: Tue, 26 Feb 2013 18:33:23 +0000 Subject: Correct a typo introduced in r153575, which gives inverted logic when handling blocking semantics when seeding. PR: kern/143298 Submitted by: James Juran Reviewed by: markm MFC after: 3 days --- sys/dev/random/randomdev_soft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/random') 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 { -- cgit v1.1