From: Ben Gras Date: Fri, 15 Oct 2010 09:09:29 +0000 (+0000) Subject: vm - fix for not placing region outside requested mmap addr X-Git-Tag: v3.2.0~781 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/style.css?a=commitdiff_plain;h=cb2e3a98a2cb3eaab0f161ad6e156fb5ac7bf394;p=minix.git vm - fix for not placing region outside requested mmap addr --- diff --git a/servers/vm/region.c b/servers/vm/region.c index 51054c282..1f33982b8 100644 --- a/servers/vm/region.c +++ b/servers/vm/region.c @@ -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)