]> Zhao Yanbai Git Server - minix.git/commitdiff
correct logic error in region.c.
authorBen Gras <ben@minix3.org>
Fri, 25 Sep 2009 17:39:39 +0000 (17:39 +0000)
committerBen Gras <ben@minix3.org>
Fri, 25 Sep 2009 17:39:39 +0000 (17:39 +0000)
servers/vm/region.c

index 449fda225669571f663d36c67ef05c8faf6a8673..035b023db427a60025d9103cb72083335dfe4fe1 100644 (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) {