summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/vm/vm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/vm/vm_map.c b/src/sys/vm/vm_map.c
index 6748348..f299b34 100644
--- a/src/sys/vm/vm_map.c
+++ b/src/sys/vm/vm_map.c
@@ -133,7 +133,7 @@ vm_map(struct vm_vas *vas, struct mmu_map *spec, size_t len, int prot)
}
/* Place a guard page at the end */
- spec->va = spec_cpy.va + len;
- __vm_map(vas, spec, DEFAULT_PAGESIZE, 0);
+ spec_cpy.va = spec_cpy.va + len;
+ __vm_map(vas, &spec_cpy, DEFAULT_PAGESIZE, 0);
return 0;
}