From eef64272414b079b9d81d336f743738a89336856 Mon Sep 17 00:00:00 2001 From: iwasaki Date: Sat, 7 Jul 2001 18:39:13 +0000 Subject: Fix typo in acpi_cpu_attach() and correct range checking in acpi_cpu_speed_sysctl(). --- sys/dev/acpica/acpi_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index 0a6c6f3..f37815d 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -247,7 +247,7 @@ acpi_cpu_attach(device_t dev) DEBUG_PRINT(TRACE_IO, ("acpi_cpu%d: throttling with P_BLK at 0x%x/%d%s\n", device_get_unit(sc->cpu_dev), p_blk, p_blk_length, - sc->cpu_p_blk ? "" : " (shadowed)"); + sc->cpu_p_blk ? "" : " (shadowed)")); } } return_VALUE(0); @@ -377,7 +377,7 @@ acpi_cpu_speed_sysctl(SYSCTL_HANDLER_ARGS) return(error); /* range check */ - if ((arg < 1) || (arg >= cpu_max_state)) + if ((arg < 1) || (arg > cpu_max_state)) return(EINVAL); /* set new value and possibly switch */ -- cgit v1.1