Fix a </<= mixup. This could result in suboptimal performance on the last
page of physical memory.
This commit is contained in:
parent
ac37f80c1d
commit
90fe5b5b3e
@ -93,7 +93,7 @@ mem_valid(vm_offset_t addr, int len)
|
||||
|
||||
for (i = 0; i < npregions; i++)
|
||||
if ((addr >= pregions[i].mr_start)
|
||||
&& (addr + len < pregions[i].mr_start + pregions[i].mr_size))
|
||||
&& (addr + len <= pregions[i].mr_start + pregions[i].mr_size))
|
||||
return (0);
|
||||
|
||||
return (EFAULT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user