mirror of
https://github.com/opnsense/src.git
synced 2026-03-09 01:30:47 -04:00
The object type can't be OBJT_PHYS in vm_mmap().
Reviewed by: peter
This commit is contained in:
parent
4e6e1b8646
commit
6900a17c75
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue