correct logic error in region.c.

This commit is contained in:
Ben Gras 2009-09-25 17:39:39 +00:00
parent 1d0854e6db
commit aa1c90fdd7

View File

@ -876,7 +876,7 @@ int write;
vm_assert(!(length % VM_PAGE_SIZE));
vm_assert(!write || (region->flags & VR_WRITABLE));
physr_start_iter(region->phys, &iter, offset, AVL_LESS_EQUAL);
physr_start_iter(region->phys, &iter, offset, AVL_GREATER_EQUAL);
physr = physr_get_iter(&iter);
if(!physr || offset < physr->offset) {