diff options
author | 2001-03-15 10:30:57 +0000 | |
---|---|---|
committer | 2001-03-15 10:30:57 +0000 | |
commit | 11429ec8bbcd6d28efdcda742af0d33e43ae2878 (patch) | |
tree | f347b9461f3c230ff46bf2934047c6b16e08825f | |
parent | $OpenBSD$ (diff) | |
download | wireguard-openbsd-11429ec8bbcd6d28efdcda742af0d33e43ae2878.tar.xz wireguard-openbsd-11429ec8bbcd6d28efdcda742af0d33e43ae2878.zip |
Let uvm_map_extract set the lower bound on the address range itself
instead of depending on the callers to do that. (which they don't)
-rw-r--r-- | sys/uvm/uvm_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index f5e6bbc8c4b..36548caa3d0 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.9 2001/03/09 14:20:51 art Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.10 2001/03/15 10:30:57 art Exp $ */ /* $NetBSD: uvm_map.c,v 1.56 1999/06/16 19:34:24 thorpej Exp $ */ /* @@ -1369,7 +1369,7 @@ uvm_map_extract(srcmap, start, len, dstmap, dstaddrp, flags) * step 1: reserve space in the target map for the extracted area */ - dstaddr = *dstaddrp; + dstaddr = vm_map_min(dstmap); if (uvm_map_reserve(dstmap, len, start, &dstaddr) == FALSE) return(ENOMEM); *dstaddrp = dstaddr; /* pass address back to caller */ |