Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2013 00:46:42 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r247511 - in stable: 6/sys/dev/random 7/sys/dev/random 8/sys/dev/random 9/sys/dev/random
Message-ID:  <201303010046.r210kg5S016628@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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/7/sys/dev/random/randomdev_soft.c
Directory Properties:
  stable/7/sys/   (props changed)

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303010046.r210kg5S016628>