diff options
author | marcel <marcel@FreeBSD.org> | 2007-07-28 17:46:04 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2007-07-28 17:46:04 +0000 |
commit | 45cc42799bde8b53d59ccbe99765d784847cdae6 (patch) | |
tree | bdb73a774489c1ca2a7469495c01a3f39fb74530 /usr.sbin/acpi | |
parent | bbf0406634d3ea011b1c158ea86defb4b915e59a (diff) | |
download | FreeBSD-src-45cc42799bde8b53d59ccbe99765d784847cdae6.zip FreeBSD-src-45cc42799bde8b53d59ccbe99765d784847cdae6.tar.gz |
Fix acpidump(8) on ia64. Revision 1.13 introduced an uninitialized
variable bug that's hidden by the precense of the hint_acpi_0_rsdp
hint on 386 and amd64. There's never a need for such hint on ia64.
Approved by: re (kensmith)
Diffstat (limited to 'usr.sbin/acpi')
-rw-r--r-- | usr.sbin/acpi/acpidump/acpi_user.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/acpi/acpidump/acpi_user.c b/usr.sbin/acpi/acpidump/acpi_user.c index 617470c..d9d9c24 100644 --- a/usr.sbin/acpi/acpidump/acpi_user.c +++ b/usr.sbin/acpi/acpidump/acpi_user.c @@ -166,6 +166,8 @@ acpi_find_rsd_ptr(void) acpi_user_init(); + addr = 0; + /* Attempt to use kenv or sysctl to find RSD PTR record. */ if (kenv(KENV_GET, hint_acpi_0_rsdp, buf, 20) == 0) addr = strtoul(buf, NULL, 0); |