Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2021 00:33:15 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8660813153d0 - main - start_init: use 'p'
Message-ID:  <202111150033.1AF0XFS1028234@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111150033.1AF0XFS1028234>