tech-kern archive

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

Re: panic in sysmon_envsys_unregister



ef%math.uni-bonn.de@localhost (Edgar =?iso-8859-1?B?RnXf?=) writes:

>This is -current from around yesterday.
>I guess the problem is related to
>	mfii0: autoconfiguration error: unable to register with sysmon (rv = 86)
>	mfii0: autoconfiguration error: unable to create sensors
>So probably someone is trying to un-resgister something not registered.

Indeed:

Index: mfii.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/mfii.c,v
retrieving revision 1.26
diff -p -u -r1.26 mfii.c
--- mfii.c      16 Jul 2022 07:23:51 -0000      1.26
+++ mfii.c      14 Sep 2022 04:05:23 -0000
@@ -3980,6 +3980,8 @@ mfii_create_sensors(struct mfii_softc *s
        sc->sc_sme->sme_refresh = mfii_refresh_sensor;
        rv = sysmon_envsys_register(sc->sc_sme);
        if (rv) {
+               sysmon_envsys_destroy(sc->sc_sme);
+               sc->sc_sme = NULL;
                aprint_error_dev(sc->sc_dev,
                    "unable to register with sysmon (rv = %d)\n", rv);
        }



Home | Main Index | Thread Index | Old Index