Fix off-by-one error when parsing SRAT table.
Reviewed by: jhb MFC after: 1 week
This commit is contained in:
parent
dab076c004
commit
ffc7e53a65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322802
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user