Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix panic when wm(4) is reattached. ok by msaito...



details:   https://anonhg.NetBSD.org/src/rev/d1e974b666e3
branches:  trunk
changeset: 449076:d1e974b666e3
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Thu Feb 21 08:10:22 2019 +0000

description:
Fix panic when wm(4) is reattached. ok by msaitoh@n.o.

This panic occured after kern_rndq.c:r1.90.

diffstat:

 sys/dev/pci/if_wm.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 269dcff3609e -r d1e974b666e3 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Thu Feb 21 05:02:20 2019 +0000
+++ b/sys/dev/pci/if_wm.c       Thu Feb 21 08:10:22 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.626 2019/02/08 06:33:04 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.627 2019/02/21 08:10:22 knakahara Exp $    */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.626 2019/02/08 06:33:04 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.627 2019/02/21 08:10:22 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -2995,6 +2995,8 @@
        evcnt_detach(&sc->sc_ev_rx_macctl);
 #endif /* WM_EVENT_COUNTERS */
 
+       rnd_detach_source(&sc->rnd_source);
+
        /* Tell the firmware about the release */
        WM_CORE_LOCK(sc);
        wm_release_manageability(sc);



Home | Main Index | Thread Index | Old Index