svn commit: r322996 - stable/11/sys/x86/acpica

Alexander Motin mav at FreeBSD.org
Tue Aug 29 07:01:16 UTC 2017


Author: mav
Date: Tue Aug 29 07:01:15 2017
New Revision: 322996
URL: https://svnweb.freebsd.org/changeset/base/322996

Log:
  MFC r322802: Fix off-by-one error when parsing SRAT table.

Modified:
  stable/11/sys/x86/acpica/srat.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/x86/acpica/srat.c
==============================================================================
--- stable/11/sys/x86/acpica/srat.c	Mon Aug 28 23:54:25 2017	(r322995)
+++ stable/11/sys/x86/acpica/srat.c	Tue Aug 29 07:01:15 2017	(r322996)
@@ -170,7 +170,7 @@ overlaps_phys_avail(vm_paddr_t start, vm_paddr_t end)
 	int i;
 
 	for (i = 0; phys_avail[i] != 0 && phys_avail[i + 1] != 0; i += 2) {
-		if (phys_avail[i + 1] < start)
+		if (phys_avail[i + 1] <= start)
 			continue;
 		if (phys_avail[i] < end)
 			return (1);


More information about the svn-src-stable mailing list