diff options
author | jhb <jhb@FreeBSD.org> | 2005-04-05 19:39:44 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-04-05 19:39:44 +0000 |
commit | f9ef4c8efa47964b3649777114405be24f3206b7 (patch) | |
tree | 8819119dc4125437544eb3c7962841c522f4518f /sys/dev/acpica/acpi_perf.c | |
parent | bdc63e8f10d46e4d732ad2082e4f4fa7d816749a (diff) | |
download | FreeBSD-src-f9ef4c8efa47964b3649777114405be24f3206b7.zip FreeBSD-src-f9ef4c8efa47964b3649777114405be24f3206b7.tar.gz |
Don't free the _PSS buffer until after we check to see if we have no valid
states as otherwise we will try to free the buffer twice.
Diffstat (limited to 'sys/dev/acpica/acpi_perf.c')
-rw-r--r-- | sys/dev/acpica/acpi_perf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index c5018f8..38b1a27 100644 --- a/sys/dev/acpica/acpi_perf.c +++ b/sys/dev/acpica/acpi_perf.c @@ -298,12 +298,12 @@ acpi_perf_evaluate(device_t dev) count++; } - AcpiOsFree(buf.Pointer); - sc->px_count = count; /* No valid Px state found. */ if (count == 0) goto out; + AcpiOsFree(buf.Pointer); + sc->px_count = count; /* Get the control and status registers (one of each). */ buf.Pointer = NULL; |