Date: Tue, 29 Aug 2017 07:01:15 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r322996 - stable/11/sys/x86/acpica Message-ID: <201708290701.v7T71FsL083343@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708290701.v7T71FsL083343>