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

Mark Murray markm at FreeBSD.org
Sun Jul 19 18:07:36 UTC 2015


Author: markm
Date: Sun Jul 19 18:07:35 2015
New Revision: 285700
URL: https://svnweb.freebsd.org/changeset/base/285700

Log:
  Fix some untidy logic. I committed the wrong local fix; please pass the pointy hat.
  
  Approved by:        so (/dev/random blanket)

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

Modified: head/sys/dev/random/randomdev.c
==============================================================================
--- head/sys/dev/random/randomdev.c	Sun Jul 19 18:07:25 2015	(r285699)
+++ head/sys/dev/random/randomdev.c	Sun Jul 19 18:07:35 2015	(r285700)
@@ -183,7 +183,7 @@ read_random_uio(struct uio *uio, bool no
 			printf("random: %s unblock wait\n", __func__);
 		spamcount = (spamcount + 1)%100;
 		error = tsleep(&random_alg_context, PCATCH, "randseed", hz/10);
-		if ((error == ERESTART | error == EINTR))
+		if (error == ERESTART || error == EINTR)
 			break;
 	}
 	if (error == 0) {


More information about the svn-src-head mailing list