Author: delphij
Date: Mon Nov  3 04:41:29 2014
New Revision: 274006
URL: https://svnweb.freebsd.org/changeset/base/274006

Log:
  Don't assert random_adaptors_lock in random_adaptor_read_rate().
  
  Reported by:  many
  Pointy hat to:        delphij (for not testing the commit with WITNESS)
  Approved by:  so

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

Modified: head/sys/dev/random/random_adaptors.c
==============================================================================
--- head/sys/dev/random/random_adaptors.c       Mon Nov  3 04:16:04 2014        
(r274005)
+++ head/sys/dev/random/random_adaptors.c       Mon Nov  3 04:41:29 2014        
(r274006)
@@ -275,10 +275,6 @@ random_adaptor_read_rate(void)
 {
        int ret;
 
-       sx_assert(&random_adaptors_lock, SA_LOCKED);
-
-       KASSERT(random_adaptor != NULL, ("No active random adaptor in %s", 
__func__));
-
        mtx_lock(&random_read_rate_mtx);
 
        ret = random_adaptor_read_rate_cache;
_______________________________________________
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