Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Add missing callout_destroy() in mue_detach().



details:   https://anonhg.NetBSD.org/src/rev/2ebf477517c6
branches:  trunk
changeset: 448351:2ebf477517c6
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Jan 31 05:25:48 2019 +0000

description:
Add missing callout_destroy() in mue_detach().

diffstat:

 sys/dev/usb/if_mue.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 9109c6e1d742 -r 2ebf477517c6 sys/dev/usb/if_mue.c
--- a/sys/dev/usb/if_mue.c      Thu Jan 31 05:25:07 2019 +0000
+++ b/sys/dev/usb/if_mue.c      Thu Jan 31 05:25:48 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_mue.c,v 1.29 2019/01/30 11:11:45 rin Exp $  */
+/*     $NetBSD: if_mue.c,v 1.30 2019/01/31 05:25:48 rin Exp $  */
 /*     $OpenBSD: if_mue.c,v 1.3 2018/08/04 16:42:46 jsg Exp $  */
 
 /*
@@ -20,7 +20,7 @@
 /* Driver for Microchip LAN7500/LAN7800 chipsets. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.29 2019/01/30 11:11:45 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.30 2019/01/31 05:25:48 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1077,6 +1077,7 @@
        if (ifp->if_flags & IFF_RUNNING)
                mue_stop(ifp, 1);
 
+       callout_destroy(&sc->mue_stat_ch);
        rnd_detach_source(&sc->mue_rnd_source);
        mii_detach(&sc->mue_mii, MII_PHY_ANY, MII_OFFSET_ANY);
        ifmedia_delete_instance(&sc->mue_mii.mii_media, IFM_INST_ANY);



Home | Main Index | Thread Index | Old Index