From 773425fadeea59617a97a21d22160b49d21de82e Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Fri, 22 Jan 2010 09:34:57 +0000 Subject: [PATCH] MFC r202558: acpi_ec: clean up 'private' ivar when freeing memory --- sys/dev/acpica/acpi_ec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c index b339ba10ed0..c101292b7e4 100644 --- a/sys/dev/acpica/acpi_ec.c +++ b/sys/dev/acpica/acpi_ec.c @@ -469,6 +469,7 @@ acpi_ec_attach(device_t dev) sc->ec_gpehandle = params->gpe_handle; sc->ec_uid = params->uid; sc->ec_suspending = FALSE; + acpi_set_private(dev, NULL); free(params, M_TEMP); /* Attach bus resources for data and command/status ports. */