diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2020-09-24 12:14:25 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-09-24 12:14:25 +0000 |
| commit | 5dca94ee82d7c68165515f9904f0766621f12889 (patch) | |
| tree | 03b32f299e281a6a5c52d757645aa8273c2368ce /sys | |
| parent | fe5ebb23cc3c3e4c94cb1443a5688d10c42a9f21 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_exec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 314d63aaa28b1..c6c2f058a7144 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -968,11 +968,8 @@ exec_fail: void exec_cleanup(struct thread *td, struct vmspace *oldvmspace) { - struct proc *p; - - p = td->td_proc; if ((td->td_pflags & TDP_EXECVMSPC) != 0) { - KASSERT(p->p_vmspace != oldvmspace, + KASSERT(td->td_proc->p_vmspace != oldvmspace, ("oldvmspace still used")); vmspace_free(oldvmspace); td->td_pflags &= ~TDP_EXECVMSPC; |
