summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2006-04-06 20:58:07 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2006-04-06 20:58:07 +0000
commit897c23e39ae4f662b0f2f3e7db07c86c519d1579 (patch)
tree802c6acebe3038c106676e4744f07c0635207e0c /sys/uvm
parent0c89df9e09dda6f181c286127f7dfc1c7a1f1a71 (diff)
Fix a process datasize leak with MAP_FIXED. When zapping old mappings
call uvm_unmap_p instead of uvm_unmap so that it has the process information and can adjust vm_dused. okay pedro@ tedu@
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_mmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c
index e5a467bc444..d31d982f1d3 100644
--- a/sys/uvm/uvm_mmap.c
+++ b/sys/uvm/uvm_mmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_mmap.c,v 1.59 2006/04/04 21:10:29 miod Exp $ */
+/* $OpenBSD: uvm_mmap.c,v 1.60 2006/04/06 20:58:06 kurt Exp $ */
/* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */
/*
@@ -1197,7 +1197,7 @@ uvm_mmap(map, addr, size, prot, maxprot, flags, handle, foff, locklimit, p)
if (*addr & PAGE_MASK)
return(EINVAL);
uvmflag |= UVM_FLAG_FIXED;
- uvm_unmap(map, *addr, *addr + size); /* zap! */
+ uvm_unmap_p(map, *addr, *addr + size, p); /* zap! */
}
/*