summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-06-12 23:10:38 +0000
committeralc <alc@FreeBSD.org>1999-06-12 23:10:38 +0000
commit15096c63d6ce3c056a19c5bd1b8774cdfa24e719 (patch)
tree50d3656184d2d08faeb003aa4dc8c96dc5ce7f8c
parentf972f1b1f1e4743029f813409b2ba61f5397e6d9 (diff)
downloadFreeBSD-src-15096c63d6ce3c056a19c5bd1b8774cdfa24e719.zip
FreeBSD-src-15096c63d6ce3c056a19c5bd1b8774cdfa24e719.tar.gz
vm_map_protect:
The wrong vm_map_entry is used to determine if writes must not be allowed due to COW.
-rw-r--r--sys/vm/vm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 39e6444..9e3b14c 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_map.c,v 1.164 1999/05/18 05:38:48 alc Exp $
+ * $Id: vm_map.c,v 1.165 1999/05/28 03:39:43 alc Exp $
*/
/*
@@ -1207,7 +1207,7 @@ vm_map_protect(vm_map_t map, vm_offset_t start, vm_offset_t end,
pmap_protect(map->pmap, current->start,
current->end,
- current->protection & MASK(entry));
+ current->protection & MASK(current));
#undef MASK
}
OpenPOWER on IntegriCloud