Fix a </<= mixup. This could result in suboptimal performance on the last

page of physical memory.
This commit is contained in:
nwhitehorn 2011-05-16 15:20:54 +00:00
parent ac37f80c1d
commit 90fe5b5b3e

View File

@ -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);