mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 16:50:25 -04:00
cred: fix struct credbatch to use long for refcount
This structure collects count from multiple cred structures. Of course it
can't use a smaller type.
PR: 283747
Reviewed by: olce, mjg, markj
Differential Revision: https://reviews.freebsd.org/D49562
Fixes: 37337709d3
This commit is contained in:
parent
d2859cd9e3
commit
cd46e98013
2 changed files with 3 additions and 3 deletions
|
|
@ -2365,7 +2365,7 @@ crunuse(struct thread *td)
|
|||
}
|
||||
|
||||
static void
|
||||
crunusebatch(struct ucred *cr, int users, int ref)
|
||||
crunusebatch(struct ucred *cr, u_int users, long ref)
|
||||
{
|
||||
|
||||
KASSERT(users > 0, ("%s: passed users %d not > 0 ; cred %p",
|
||||
|
|
|
|||
|
|
@ -192,8 +192,8 @@ struct proc;
|
|||
|
||||
struct credbatch {
|
||||
struct ucred *cred;
|
||||
int users;
|
||||
int ref;
|
||||
u_int users;
|
||||
long ref;
|
||||
};
|
||||
|
||||
static inline void
|
||||
|
|
|
|||
Loading…
Reference in a new issue