svn commit: r247511 - in stable: 6/sys/dev/random 7/sys/dev/random 8/sys/dev/random 9/sys/dev/random

Xin LI delphij at FreeBSD.org
Fri Mar 1 00:46:42 UTC 2013


Author: delphij
Date: Fri Mar  1 00:46:41 2013
New Revision: 247511
URL: http://svnweb.freebsd.org/changeset/base/247511

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

Modified:
  stable/8/sys/dev/random/randomdev_soft.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/random/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/6/sys/dev/random/randomdev_soft.c
  stable/7/sys/dev/random/randomdev_soft.c
  stable/9/sys/dev/random/randomdev_soft.c
Directory Properties:
  stable/6/sys/   (props changed)
  stable/7/sys/   (props changed)
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/8/sys/dev/random/randomdev_soft.c
==============================================================================
--- stable/8/sys/dev/random/randomdev_soft.c	Fri Mar  1 00:15:58 2013	(r247510)
+++ stable/8/sys/dev/random/randomdev_soft.c	Fri Mar  1 00:46:41 2013	(r247511)
@@ -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-stable-8 mailing list