The object type can't be OBJT_PHYS in vm_mmap().
Reviewed by: peter
This commit is contained in:
parent
88a3831a18
commit
478d776b15
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user