svn commit: r251308 - stable/8/usr.sbin/acpi/acpidump

Jung-uk Kim jkim at FreeBSD.org
Mon Jun 3 16:47:47 UTC 2013


Author: jkim
Date: Mon Jun  3 16:47:46 2013
New Revision: 251308
URL: http://svnweb.freebsd.org/changeset/base/251308

Log:
  MFC:	r251186
  
  Fix a long standing logic bug introduced in r167814.  The code was added to
  get RSDP from loader(8) hint via kenv(2) but the bug nullified the new code
  and we always fell back to the previous method, i. e., sysctlbyname(3).

Modified:
  stable/8/usr.sbin/acpi/acpidump/acpi_user.c
Directory Properties:
  stable/8/usr.sbin/acpi/acpidump/   (props changed)

Modified: stable/8/usr.sbin/acpi/acpidump/acpi_user.c
==============================================================================
--- stable/8/usr.sbin/acpi/acpidump/acpi_user.c	Mon Jun  3 16:46:37 2013	(r251307)
+++ stable/8/usr.sbin/acpi/acpidump/acpi_user.c	Mon Jun  3 16:47:46 2013	(r251308)
@@ -172,7 +172,7 @@ acpi_find_rsd_ptr(void)
 	addr = 0;
 
 	/* Attempt to use kenv or sysctl to find RSD PTR record. */
-	if (kenv(KENV_GET, hint_acpi_0_rsdp, buf, 20) == 0)
+	if (kenv(KENV_GET, hint_acpi_0_rsdp, buf, 20) > 0)
 		addr = strtoul(buf, NULL, 0);
 	if (addr == 0) {
 		len = sizeof(addr);


More information about the svn-src-stable-8 mailing list