summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-12-28 22:15:24 +0000
committernjl <njl@FreeBSD.org>2003-12-28 22:15:24 +0000
commita400451c24b3881ae450416ffbccb451b65ff011 (patch)
tree66cb0674e00b48ca5e95713d12690a3bef17672b
parent95eb81d2abe0a3b73215fb93f0c73474e74e2fd2 (diff)
downloadFreeBSD-src-a400451c24b3881ae450416ffbccb451b65ff011.zip
FreeBSD-src-a400451c24b3881ae450416ffbccb451b65ff011.tar.gz
Don't attach throttling if the P_BLK is 0, even if the P_BLK_LEN is 6.
This is more strict but no known systems have this problem.
-rw-r--r--sys/dev/acpica/acpi_cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index 8ef9655..5601b35 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -395,7 +395,7 @@ acpi_cpu_throttle_probe(struct acpi_cpu_softc *sc)
/* If _PTC not present or other failure, try the P_BLK. */
if (sc->cpu_p_cnt == NULL) {
/* The spec says P_BLK must be at least 6 bytes long. */
- if (sc->cpu_p_blk_len != 6)
+ if (sc->cpu_p_blk == 0 || sc->cpu_p_blk_len != 6)
return (ENXIO);
gas.Address = sc->cpu_p_blk;
gas.AddressSpaceId = ACPI_ADR_SPACE_SYSTEM_IO;
OpenPOWER on IntegriCloud