cred: fix minor nits in r367695

Noted by:	jhb
This commit is contained in:
Mateusz Guzik 2020-11-19 04:28:39 +00:00
parent c48f897bbe
commit 2f5b0b48ac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367830
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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);