Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use sysctl_teardown() upon detach of mskc(4).



details:   https://anonhg.NetBSD.org/src/rev/931121fe86f4
branches:  trunk
changeset: 971911:931121fe86f4
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri May 08 14:56:49 2020 +0000

description:
Use sysctl_teardown() upon detach of mskc(4).

diffstat:

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

diffs (27 lines):

diff -r 873e0cfdce75 -r 931121fe86f4 sys/dev/pci/if_msk.c
--- a/sys/dev/pci/if_msk.c      Fri May 08 14:44:23 2020 +0000
+++ b/sys/dev/pci/if_msk.c      Fri May 08 14:56:49 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_msk.c,v 1.109 2020/05/08 14:35:19 jakllsch Exp $ */
+/* $NetBSD: if_msk.c,v 1.110 2020/05/08 14:56:49 jakllsch Exp $ */
 /*     $OpenBSD: if_msk.c,v 1.79 2009/10/15 17:54:56 deraadt Exp $     */
 
 /*
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.109 2020/05/08 14:35:19 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.110 2020/05/08 14:56:49 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1831,6 +1831,8 @@
        if (rv != 0)
                return rv;
 
+       sysctl_teardown(&sc->sk_clog);
+
        if (sc->sk_status_nseg > 0) {
                bus_dmamap_destroy(sc->sc_dmatag, sc->sk_status_map);
                bus_dmamem_unmap(sc->sc_dmatag, sc->sk_status_ring,



Home | Main Index | Thread Index | Old Index