From 498b4407b9dbd8eac29cdbe337dea668e27eb671 Mon Sep 17 00:00:00 2001 From: Xin LI 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/randomdev_soft.c') 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 { -- cgit v1.3