svn commit: r322802 - head/sys/x86/acpica
Alexander Motin
mav at FreeBSD.org
Tue Aug 22 19:56:32 UTC 2017
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);
More information about the svn-src-all
mailing list