Module Name: src Committed By: riastradh Date: Fri Jul 1 01:06:04 UTC 2022
Modified Files: src/sys/kern: kern_lwp.c Log Message: kern: Fix comment about precondition of lwp_update_creds. To generate a diff of this commit: cvs rdiff -u -r1.250 -r1.251 src/sys/kern/kern_lwp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_lwp.c diff -u src/sys/kern/kern_lwp.c:1.250 src/sys/kern/kern_lwp.c:1.251 --- src/sys/kern/kern_lwp.c:1.250 Sun May 22 11:27:36 2022 +++ src/sys/kern/kern_lwp.c Fri Jul 1 01:06:04 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_lwp.c,v 1.250 2022/05/22 11:27:36 andvar Exp $ */ +/* $NetBSD: kern_lwp.c,v 1.251 2022/07/01 01:06:04 riastradh Exp $ */ /*- * Copyright (c) 2001, 2006, 2007, 2008, 2009, 2019, 2020 @@ -217,7 +217,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.250 2022/05/22 11:27:36 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.251 2022/07/01 01:06:04 riastradh Exp $"); #include "opt_ddb.h" #include "opt_lockdebug.h" @@ -1532,7 +1532,7 @@ lwp_find(struct proc *p, lwpid_t id) * This happens early in the syscall path, on user trap, and on LWP * creation. A long-running LWP can also voluntarily choose to update * its credentials by calling this routine. This may be called from - * LWP_CACHE_CREDS(), which checks l->l_cred != p->p_cred beforehand. + * LWP_CACHE_CREDS(), which checks l->l_prflag & LPR_CRMOD beforehand. */ void lwp_update_creds(struct lwp *l)