Date: Thu, 19 Nov 2020 04:28:40 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367830 - in head/sys: kern sys Message-ID: <202011190428.0AJ4SeL0030559@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Thu Nov 19 04:28:39 2020 New Revision: 367830 URL: https://svnweb.freebsd.org/changeset/base/367830 Log: cred: fix minor nits in r367695 Noted by: jhb Modified: head/sys/kern/kern_prot.c head/sys/sys/ucred.h Modified: head/sys/kern/kern_prot.c ============================================================================== --- head/sys/kern/kern_prot.c Thu Nov 19 04:27:51 2020 (r367829) +++ head/sys/kern/kern_prot.c Thu Nov 19 04:28:39 2020 (r367830) @@ -2082,6 +2082,7 @@ crfree_final(struct ucred *cr) __func__, cr->cr_users, cr)); KASSERT(cr->cr_ref == 0, ("%s: ref %d not == 0 on cred %p", __func__, cr->cr_ref, cr)); + /* * Some callers of crget(), such as nfs_statfs(), allocate a temporary * credential, but don't allocate a uidinfo structure. Modified: head/sys/sys/ucred.h ============================================================================== --- head/sys/sys/ucred.h Thu Nov 19 04:27:51 2020 (r367829) +++ head/sys/sys/ucred.h Thu Nov 19 04:28:39 2020 (r367830) @@ -128,12 +128,13 @@ credbatch_prep(struct credbatch *crb) crb->ref = 0; } void credbatch_add(struct credbatch *crb, struct thread *td); + static inline void credbatch_process(struct credbatch *crb __unused) { } -void credbatch_add(struct credbatch *crb, struct thread *td); + void credbatch_final(struct credbatch *crb); void change_egid(struct ucred *newcred, gid_t egid);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011190428.0AJ4SeL0030559>