The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=420d4be3e40a13dbeb6ac1fe754f81480448ef55
commit 420d4be3e40a13dbeb6ac1fe754f81480448ef55 Author: Konstantin Belousov <[email protected]> AuthorDate: 2021-01-13 03:04:18 +0000 Commit: Konstantin Belousov <[email protected]> CommitDate: 2021-01-14 08:02:43 +0000 vm_map_protect(): remove not needed recalculations of new_prot, new_maxprot Requested by: alc Sponsored by: The FreeBSD Foundation --- sys/vm/vm_map.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 4bd0b245a881..b3288fce5114 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -2836,11 +2836,6 @@ again: return (rv); } - if ((flags & VM_MAP_PROTECT_SET_PROT) == 0) - new_prot = entry->protection; - if ((flags & VM_MAP_PROTECT_SET_MAXPROT) == 0) - new_maxprot = entry->max_protection; - if ((flags & VM_MAP_PROTECT_SET_PROT) == 0 || ((new_prot & ~entry->protection) & VM_PROT_WRITE) == 0 || ENTRY_CHARGED(entry) || _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
