Date: Thu, 14 Jan 2021 08:20:46 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 420d4be3e40a - main - vm_map_protect(): remove not needed recalculations of new_prot, new_maxprot Message-ID: <202101140820.10E8Kkw4069929@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=420d4be3e40a13dbeb6ac1fe754f81480448ef55 commit 420d4be3e40a13dbeb6ac1fe754f81480448ef55 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-01-13 03:04:18 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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) ||
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101140820.10E8Kkw4069929>