Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Unhook the entropy source on detach.



details:   https://anonhg.NetBSD.org/src/rev/b88f83b70adc
branches:  trunk
changeset: 481585:b88f83b70adc
user:      enami <enami%NetBSD.org@localhost>
date:      Wed Feb 02 10:45:12 2000 +0000

description:
Unhook the entropy source on detach.

diffstat:

 sys/dev/ic/mb86960.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r cdfb97bf3e81 -r b88f83b70adc sys/dev/ic/mb86960.c
--- a/sys/dev/ic/mb86960.c      Wed Feb 02 10:31:45 2000 +0000
+++ b/sys/dev/ic/mb86960.c      Wed Feb 02 10:45:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mb86960.c,v 1.36 2000/02/02 09:34:52 enami Exp $       */
+/*     $NetBSD: mb86960.c,v 1.37 2000/02/02 10:45:12 enami Exp $       */
 
 /*
  * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
@@ -271,7 +271,7 @@
 #endif
 #if NRND > 0
        rnd_attach_source(&sc->rnd_source, sc->sc_dev.dv_xname,
-                         RND_TYPE_NET, 0);
+           RND_TYPE_NET, 0);
 #endif
        /* Print additional info when attached. */
        printf("%s: Ethernet address %s\n", sc->sc_dev.dv_xname,
@@ -1854,6 +1854,10 @@
        /* Delete all media. */
        ifmedia_delete_instance(&sc->sc_media, IFM_INST_ANY);
 
+#if NRND > 0
+       /* Unhook the entropy source. */
+       rnd_detach_source(&sc->rnd_source);
+#endif
 #if NBPFILTER > 0
        bpfdetach(ifp);
 #endif



Home | Main Index | Thread Index | Old Index