diff options
author | njl <njl@FreeBSD.org> | 2005-02-17 01:02:58 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-02-17 01:02:58 +0000 |
commit | c6c439fc3c87955b8088cdc29bb87d127a9c43a8 (patch) | |
tree | d5eb86735b84b450868204264f8163b0112ee28e | |
parent | b778823f8a6fac568836f9b5b18f8c14552028f9 (diff) | |
download | FreeBSD-src-c6c439fc3c87955b8088cdc29bb87d127a9c43a8.zip FreeBSD-src-c6c439fc3c87955b8088cdc29bb87d127a9c43a8.tar.gz |
The correct error value for not having enough storage is E2BIG, not
ENOMEM. The manpage and ichss(4) are correct.
-rw-r--r-- | sys/dev/acpica/acpi_perf.c | 2 | ||||
-rw-r--r-- | sys/dev/acpica/acpi_throttle.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_perf.c b/sys/dev/acpica/acpi_perf.c index a8414d0..1956d7b 100644 --- a/sys/dev/acpica/acpi_perf.c +++ b/sys/dev/acpica/acpi_perf.c @@ -401,7 +401,7 @@ acpi_px_settings(device_t dev, struct cf_setting *sets, int *count, int *type) if (sets == NULL || count == NULL) return (EINVAL); if (*count < sc->px_count - sc->px_max_avail) - return (ENOMEM); + return (E2BIG); /* Return a list of settings that are currently valid. */ y = 0; diff --git a/sys/dev/acpica/acpi_throttle.c b/sys/dev/acpica/acpi_throttle.c index 22aa71f..51894c2 100644 --- a/sys/dev/acpica/acpi_throttle.c +++ b/sys/dev/acpica/acpi_throttle.c @@ -329,7 +329,7 @@ acpi_thr_settings(device_t dev, struct cf_setting *sets, int *count, int *type) if (sets == NULL || count == NULL) return (EINVAL); if (*count < CPU_MAX_SPEED) - return (ENOMEM); + return (E2BIG); /* Return a list of valid settings for this driver. */ memset(sets, CPUFREQ_VAL_UNKNOWN, sizeof(*sets) * CPU_MAX_SPEED); |