]> Zhao Yanbai Git Server - minix.git/commitdiff
vm - fix for not placing region outside requested mmap addr
authorBen Gras <ben@minix3.org>
Fri, 15 Oct 2010 09:09:29 +0000 (09:09 +0000)
committerBen Gras <ben@minix3.org>
Fri, 15 Oct 2010 09:09:29 +0000 (09:09 +0000)
servers/vm/region.c

index 51054c282eebe893448462059db53cf4bfd40ead..1f33982b8d6bae736ae6729996612e65e889f813 100644 (file)
@@ -471,7 +471,7 @@ PRIVATE vir_bytes region_find_slot(struct vmproc *vmp,
         * possible. remember that a zero maxv is a special case.
         */
 
-       if(maxv && hint < maxv) {
+       if(maxv && hint < maxv && hint >= minv) {
                v = region_find_slot_range(vmp, hint, maxv, length);
 
                if(v != SLOT_FAIL)