summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_perf.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-02-17 01:02:58 +0000
committernjl <njl@FreeBSD.org>2005-02-17 01:02:58 +0000
commitc6c439fc3c87955b8088cdc29bb87d127a9c43a8 (patch)
treed5eb86735b84b450868204264f8163b0112ee28e /sys/dev/acpica/acpi_perf.c
parentb778823f8a6fac568836f9b5b18f8c14552028f9 (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/dev/acpica/acpi_perf.c')
-rw-r--r--sys/dev/acpica/acpi_perf.c2
1 files changed, 1 insertions, 1 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;
OpenPOWER on IntegriCloud