aboutsummaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
Diffstat (limited to 'exec')
-rw-r--r--exec/exec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/exec/exec.c b/exec/exec.c
index f6788520..ac226f9a 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -1219,9 +1219,7 @@ do_exec (file_t file,
munmap ((caddr_t) threads, nthreads * sizeof (thread_t));
/* Deallocate the entire virtual address space of the task. */
-
- vm_deallocate (oldtask,
- VM_MIN_ADDRESS, VM_MAX_ADDRESS - VM_MIN_ADDRESS);
+ vm_deallocate (oldtask, 0, (vm_size_t) -1);
/* Nothing is supposed to go wrong any more. If anything does, the
old task is now in a hopeless state and must be killed. */