svn commit: r247334 - head/sys/dev/random

Xin LI delphij at FreeBSD.org
Tue Feb 26 18:33:24 UTC 2013


Author: delphij
Date: Tue Feb 26 18:33:23 2013
New Revision: 247334
URL: http://svnweb.freebsd.org/changeset/base/247334

Log:
  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

Modified:
  head/sys/dev/random/randomdev_soft.c

Modified: head/sys/dev/random/randomdev_soft.c
==============================================================================
--- head/sys/dev/random/randomdev_soft.c	Tue Feb 26 18:31:03 2013	(r247333)
+++ head/sys/dev/random/randomdev_soft.c	Tue Feb 26 18:33:23 2013	(r247334)
@@ -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 {


More information about the svn-src-all mailing list