diff options
| author | Alan Cox <alc@FreeBSD.org> | 1999-11-23 06:51:28 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 1999-11-23 06:51:28 +0000 |
| commit | 2ed14a92db3531008eeb519aab84d9de1702f63e (patch) | |
| tree | 998dfb42bec74225475941afcadc2de9b5747cc0 /sys/vm | |
| parent | e1da8747e7d3330d0a083913617a81f437725cda (diff) | |
Notes
Diffstat (limited to 'sys/vm')
| -rw-r--r-- | sys/vm/vm_map.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 5f429d0efd2c..ca42708f783b 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -2510,10 +2510,11 @@ RetryLookup:; RETURN(KERN_PROTECTION_FAILURE); } - if (entry->wired_count && (fault_type & VM_PROT_WRITE) && - (entry->eflags & MAP_ENTRY_COW) && - (fault_typea & VM_PROT_OVERRIDE_WRITE) == 0) { - RETURN(KERN_PROTECTION_FAILURE); + if ((entry->eflags & MAP_ENTRY_USER_WIRED) && + (entry->eflags & MAP_ENTRY_COW) && + (fault_type & VM_PROT_WRITE) && + (fault_typea & VM_PROT_OVERRIDE_WRITE) == 0) { + RETURN(KERN_PROTECTION_FAILURE); } /* |
