svn commit: r367830 - in head/sys: kern sys
Mateusz Guzik
mjg at FreeBSD.org
Thu Nov 19 04:28:40 UTC 2020
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);
More information about the svn-src-all
mailing list