summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-03-30 00:56:20 +0000
committermux <mux@FreeBSD.org>2003-03-30 00:56:20 +0000
commit478d776b152499d1b9d8d51e64a83921460118f9 (patch)
tree5f77d931c5e3bb94f552fdaedef4e186ba5ab6fe /sys/vm
parent88a3831a183602754033ed0ba59595a52178a445 (diff)
downloadFreeBSD-src-478d776b152499d1b9d8d51e64a83921460118f9.zip
FreeBSD-src-478d776b152499d1b9d8d51e64a83921460118f9.tar.gz
The object type can't be OBJT_PHYS in vm_mmap().
Reviewed by: peter
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index 7aff717..93c8524 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -1215,7 +1215,7 @@ vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot,
/*
* Force device mappings to be shared.
*/
- if (type == OBJT_DEVICE || type == OBJT_PHYS) {
+ if (type == OBJT_DEVICE) {
flags &= ~(MAP_PRIVATE|MAP_COPY);
flags |= MAP_SHARED;
}
OpenPOWER on IntegriCloud