diff options
author | mux <mux@FreeBSD.org> | 2003-03-30 00:56:20 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-03-30 00:56:20 +0000 |
commit | 478d776b152499d1b9d8d51e64a83921460118f9 (patch) | |
tree | 5f77d931c5e3bb94f552fdaedef4e186ba5ab6fe /sys/vm | |
parent | 88a3831a183602754033ed0ba59595a52178a445 (diff) | |
download | FreeBSD-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.c | 2 |
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; } |