diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-19 23:07:28 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-19 23:07:28 -0400 |
commit | 6b2d1153852a7f0121d6514cb4d7e5dc6baa7e39 (patch) | |
tree | 84722ef57a871363ca3bcde299181e75f50e9044 /src | |
parent | 9d7fe368d8a42ec0aa355573cf6ab5b6b21e9e5f (diff) |
kern: vm: Use spec_cpy, don't clobber 'spec'
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/vm/vm_map.c | 4 |
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; } |