svn commit: r202791 - stable/7/sys/dev/acpica

Andriy Gapon avg at FreeBSD.org
Fri Jan 22 09:37:48 UTC 2010


Author: avg
Date: Fri Jan 22 09:37:47 2010
New Revision: 202791
URL: http://svn.freebsd.org/changeset/base/202791

Log:
  MFC r202558: acpi_ec: clean up 'private' ivar when freeing memory

Modified:
  stable/7/sys/dev/acpica/acpi_ec.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/acpica/acpi_ec.c
==============================================================================
--- stable/7/sys/dev/acpica/acpi_ec.c	Fri Jan 22 09:34:57 2010	(r202790)
+++ stable/7/sys/dev/acpica/acpi_ec.c	Fri Jan 22 09:37:47 2010	(r202791)
@@ -467,6 +467,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. */


More information about the svn-src-all mailing list