git: 8660813153d0 - main - start_init: use 'p'

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 15 Nov 2021 00:33:15 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=8660813153d02e9e681ae083edc7f1d574cb62ca

commit 8660813153d02e9e681ae083edc7f1d574cb62ca
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-14 20:47:59 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-11-15 00:33:01 +0000

    start_init: use 'p'
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
---
 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 fde07dcbf46d..c43bfa407241 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -773,7 +773,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"));