acpi_hp(4): Fix detaching, by adding the missing sysctl_ctx_free call.
authorImre Vadasz <imre@vdsz.com>
Tue, 24 Feb 2015 22:57:11 +0000 (23:57 +0100)
committerImre Vadasz <imre@vdsz.com>
Tue, 24 Feb 2015 22:57:11 +0000 (23:57 +0100)
sys/dev/acpica/acpi_hp/acpi_hp.c

index 8515b83..6e3dfb0 100644 (file)
@@ -591,6 +591,7 @@ acpi_hp_detach(device_t dev)
                        ACPI_WMI_REMOVE_EVENT_HANDLER(dev,
                            ACPI_HP_WMI_EVENT_GUID);
                }
+               sysctl_ctx_free(&sc->sysctl_ctx);
                if (sc->hpcmi_bufptr != -1) {
                        sbuf_delete(&sc->hpcmi_sbuf);
                        sc->hpcmi_bufptr = -1;