Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/uvm Pullup rev 1.66 (requested by skrll in ticket #...
details: https://anonhg.NetBSD.org/src/rev/55e297bc1041
branches: netbsd-1-6
changeset: 531134:55e297bc1041
user: jmc <jmc%NetBSD.org@localhost>
date: Mon Mar 15 04:59:10 2004 +0000
description:
Pullup rev 1.66 (requested by skrll in ticket #1607)
#if 0 the call to uvm_map_checkprot() in sys_munmap() -- it's not documented,
and programs do not expect it. Also fixes memory leaks in dlopen()/dlclose().
diffstat:
sys/uvm/uvm_mmap.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 4e20e97f8464 -r 55e297bc1041 sys/uvm/uvm_mmap.c
--- a/sys/uvm/uvm_mmap.c Mon Mar 15 04:48:58 2004 +0000
+++ b/sys/uvm/uvm_mmap.c Mon Mar 15 04:59:10 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_mmap.c,v 1.63.4.1 2003/08/17 10:14:52 tron Exp $ */
+/* $NetBSD: uvm_mmap.c,v 1.63.4.2 2004/03/15 04:59:10 jmc Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.63.4.1 2003/08/17 10:14:52 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_mmap.c,v 1.63.4.2 2004/03/15 04:59:10 jmc Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -649,10 +649,12 @@
*/
vm_map_lock(map);
+#if 0
if (!uvm_map_checkprot(map, addr, addr + size, VM_PROT_NONE)) {
vm_map_unlock(map);
return (EINVAL);
}
+#endif
uvm_unmap_remove(map, addr, addr + size, &dead_entries);
vm_map_unlock(map);
if (dead_entries != NULL)
Home |
Main Index |
Thread Index |
Old Index