Fix typo in acpi_cpu_attach() and correct range checking in

acpi_cpu_speed_sysctl().
This commit is contained in:
Mitsuru IWASAKI
2001-07-07 18:39:13 +00:00
parent 037fbe4424
commit f0987736ef
+2 -2
View File
@@ -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 */