summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-10-26 05:57:29 +0000
committerphk <phk@FreeBSD.org>2004-10-26 05:57:29 +0000
commit76b805d6f461f60dd1a7f0a2726131fd4517b5cc (patch)
treec99ee902ec471f4fc04a27613a5c34c4e68649fe
parent53c873427ab2ae8bb56b057c752cbc9f60e0e04f (diff)
downloadFreeBSD-src-76b805d6f461f60dd1a7f0a2726131fd4517b5cc.zip
FreeBSD-src-76b805d6f461f60dd1a7f0a2726131fd4517b5cc.tar.gz
Don't clear flags we just checked were not set.
-rw-r--r--sys/vm/vm_mmap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index 6801bc2..9cff1e1 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -1116,7 +1116,6 @@ vm_mmap_vnode(struct thread *td, vm_size_t objsize,
/*
* Force device mappings to be shared.
*/
- flags &= ~(MAP_PRIVATE|MAP_COPY);
flags |= MAP_SHARED;
} else {
error = EINVAL;
OpenPOWER on IntegriCloud