git: 5bd64640f779 - stable/13 - start_init: use 'p'
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Nov 2021 00:55:59 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=5bd64640f7797e0938c567e5fe98f4809d345310
commit 5bd64640f7797e0938c567e5fe98f4809d345310
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-14 20:47:59 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-11-18 00:32:32 +0000
start_init: use 'p'
(cherry picked from commit 8660813153d02e9e681ae083edc7f1d574cb62ca)
---
sys/kern/init_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index e46f8f74c83d..4def00f8a018 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -766,7 +766,7 @@ start_init(void *dummy)
*/
KASSERT((td->td_pflags & TDP_EXECVMSPC) == 0,
("nested execve"));
- oldvmspace = td->td_proc->p_vmspace;
+ oldvmspace = p->p_vmspace;
error = kern_execve(td, &args, NULL, oldvmspace);
KASSERT(error != 0,
("kern_execve returned success, not EJUSTRETURN"));