From: Ben Gras Date: Fri, 25 Sep 2009 17:39:39 +0000 (+0000) Subject: correct logic error in region.c. X-Git-Tag: v3.1.5~86 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=aa1c90fdd7130073ab959c362cfd144a1273dd08;p=minix.git correct logic error in region.c. --- diff --git a/servers/vm/region.c b/servers/vm/region.c index 449fda225..035b023db 100644 --- a/servers/vm/region.c +++ b/servers/vm/region.c @@ -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) {