Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/uvm patch from thorpej: fixes bug in mlock() of ano...
details: https://anonhg.NetBSD.org/src/rev/40d4584a9f07
branches: netbsd-1-4
changeset: 468721:40d4584a9f07
user: perry <perry%NetBSD.org@localhost>
date: Fri Jun 18 17:17:04 1999 +0000
description:
patch from thorpej: fixes bug in mlock() of anonymous memory
diffstat:
sys/uvm/uvm_map.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diffs (27 lines):
diff -r ae114867658c -r 40d4584a9f07 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Fri Jun 18 17:14:35 1999 +0000
+++ b/sys/uvm/uvm_map.c Fri Jun 18 17:17:04 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.36.2.2 1999/06/18 17:01:53 perry Exp $ */
+/* $NetBSD: uvm_map.c,v 1.36.2.3 1999/06/18 17:17:04 perry Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -1981,14 +1981,9 @@
*/
if (!UVM_ET_ISSUBMAP(entry)) { /* not submap */
- /*
- * XXXCDC: protection vs. max_protection??
- * (wirefault uses max?)
- * XXXCDC: used to do it always if
- * uvm_obj == NULL (wrong?)
- */
- if ( UVM_ET_ISNEEDSCOPY(entry) &&
- (entry->protection & VM_PROT_WRITE) != 0) {
+ if (UVM_ET_ISNEEDSCOPY(entry) &&
+ ((entry->protection & VM_PROT_WRITE) ||
+ (entry->object.uvm_obj == NULL))) {
amap_copy(map, entry, M_WAITOK, TRUE,
start, end);
/* XXXCDC: wait OK? */
Home |
Main Index |
Thread Index |
Old Index