summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_map.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 9e40e95..afe6760 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -387,9 +387,7 @@ mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off)
mapping->vmobj = vmobj;
mapping->physmem_base = 0;
- }
-
- if (addr == NULL && physmem != 0) {
+ } else if (addr == NULL && physmem != 0) {
map_start = physmem + mapoff;
vm_map((void *)map_start, physmem, prot, len);
addr = (void *)physmem;