vm_map_protect:

The wrong vm_map_entry is used to determine if writes must not be
	allowed due to COW.
This commit is contained in:
alc 1999-06-12 23:10:38 +00:00
parent 8627de66d9
commit ef41979780

View File

@ -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
}