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 /sys/dev/acpica/acpi_perf.c | |
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.
Diffstat (limited to 'sys/dev/acpica/acpi_perf.c')
-rw-r--r-- | sys/dev/acpica/acpi_perf.c | 2 |
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; |