Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2017 19:56:31 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322802 - head/sys/x86/acpica
Message-ID:  <201708221956.v7MJuVXi075290@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Aug 22 19:56:30 2017
New Revision: 322802
URL: https://svnweb.freebsd.org/changeset/base/322802

Log:
  Fix off-by-one error when parsing SRAT table.
  
  Reviewed by:	jhb
  MFC after:	1 week

Modified:
  head/sys/x86/acpica/srat.c

Modified: head/sys/x86/acpica/srat.c
==============================================================================
--- head/sys/x86/acpica/srat.c	Tue Aug 22 19:48:33 2017	(r322801)
+++ head/sys/x86/acpica/srat.c	Tue Aug 22 19:56:30 2017	(r322802)
@@ -172,7 +172,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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708221956.v7MJuVXi075290>