[Midnightbsd-cvs] src [6814] trunk/sys/dev/random/randomdev_soft.c: fix an inverted logic problem with random
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Oct 2 21:44:59 EDT 2014
Revision: 6814
http://svnweb.midnightbsd.org/src/?rev=6814
Author: laffer1
Date: 2014-10-02 21:44:58 -0400 (Thu, 02 Oct 2014)
Log Message:
-----------
fix an inverted logic problem with random
Modified Paths:
--------------
trunk/sys/dev/random/randomdev_soft.c
Modified: trunk/sys/dev/random/randomdev_soft.c
===================================================================
--- trunk/sys/dev/random/randomdev_soft.c 2014-10-03 01:16:07 UTC (rev 6813)
+++ trunk/sys/dev/random/randomdev_soft.c 2014-10-03 01:44:58 UTC (rev 6814)
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__MBSDID("$MidnightBSD$");
+__FBSDID("$FreeBSD: release/9.2.0/sys/dev/random/randomdev_soft.c 249915 2013-04-26 01:56:58Z ache $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -391,7 +391,7 @@
mtx_lock(&random_reseed_mtx);
/* Blocking logic */
- while (random_systat.seeded && !error) {
+ while (!random_systat.seeded && !error) {
if (flag & O_NONBLOCK)
error = EWOULDBLOCK;
else {
More information about the Midnightbsd-cvs
mailing list