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 {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to