vm - fix for not placing region outside requested mmap addr
This commit is contained in:
parent
431a5a556d
commit
cb2e3a98a2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue