Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Before destroying a autonegotiation callout, mak...



details:   https://anonhg.NetBSD.org/src/rev/6e42117b3e07
branches:  trunk
changeset: 752610:6e42117b3e07
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Mar 02 08:30:40 2010 +0000

description:
Before destroying a autonegotiation callout, make sure it is quiet

diffstat:

 sys/dev/mii/mii_physubr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 73b012e6af6b -r 6e42117b3e07 sys/dev/mii/mii_physubr.c
--- a/sys/dev/mii/mii_physubr.c Tue Mar 02 08:05:48 2010 +0000
+++ b/sys/dev/mii/mii_physubr.c Tue Mar 02 08:30:40 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii_physubr.c,v 1.67 2010/02/24 22:37:59 dyoung Exp $  */
+/*     $NetBSD: mii_physubr.c,v 1.68 2010/03/02 08:30:40 martin Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mii_physubr.c,v 1.67 2010/02/24 22:37:59 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mii_physubr.c,v 1.68 2010/03/02 08:30:40 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -554,7 +554,7 @@
        /* XXX Invalidate parent's media setting? */
 
        if (sc->mii_flags & MIIF_DOINGAUTO)
-               callout_stop(&sc->mii_nway_ch);
+               callout_halt(&sc->mii_nway_ch, NULL);
 
        callout_destroy(&sc->mii_nway_ch);
 



Home | Main Index | Thread Index | Old Index