vm - fix for not placing region outside requested mmap addr

This commit is contained in:
Ben Gras 2010-10-15 09:09:29 +00:00
parent 431a5a556d
commit cb2e3a98a2

View File

@ -471,7 +471,7 @@ PRIVATE vir_bytes region_find_slot(struct vmproc *vmp,
* possible. remember that a zero maxv is a special case. * 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); v = region_find_slot_range(vmp, hint, maxv, length);
if(v != SLOT_FAIL) if(v != SLOT_FAIL)