vm - fix for not placing region outside requested mmap addr
This commit is contained in:
parent
431a5a556d
commit
cb2e3a98a2
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user