Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/sys/dev/sysmon Apply patch (requested by pgoyette in tick...



details:   https://anonhg.NetBSD.org/src/rev/3939b2d2bf9d
branches:  netbsd-7
changeset: 800350:3939b2d2bf9d
user:      snj <snj%NetBSD.org@localhost>
date:      Mon Oct 23 18:57:12 2017 +0000

description:
Apply patch (requested by pgoyette in ticket #1511):
Detach the rndsrc before re-attaching it.

diffstat:

 sys/dev/sysmon/sysmon_envsys.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r de0f8beb1986 -r 3939b2d2bf9d sys/dev/sysmon/sysmon_envsys.c
--- a/sys/dev/sysmon/sysmon_envsys.c    Mon Oct 23 18:52:08 2017 +0000
+++ b/sys/dev/sysmon/sysmon_envsys.c    Mon Oct 23 18:57:12 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysmon_envsys.c,v 1.127.2.1 2015/04/06 18:45:30 snj Exp $      */
+/*     $NetBSD: sysmon_envsys.c,v 1.127.2.2 2017/10/23 18:57:12 snj Exp $      */
 
 /*-
  * Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.127.2.1 2015/04/06 18:45:30 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.127.2.2 2017/10/23 18:57:12 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -1207,6 +1207,12 @@
                        }
 
                        /*
+                        * Detach from entropy collection
+                        */
+                       if (edata->flags & ENVSYS_FHAS_ENTROPY)
+                               rnd_detach_sources(&edata->rnd_src);
+
+                       /*
                         * Finally, remove any old limits event, then
                         * install a new event (which will update the
                         * dictionary)



Home | Main Index | Thread Index | Old Index