mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Use refcount_init in sigacts_alloc.
This change is a no-op, but fixes up an inconsistency introduced with r268634. MFC after: 3 days
This commit is contained in:
parent
9de6b2c587
commit
ce8daaadbd
1 changed files with 1 additions and 1 deletions
|
|
@ -3429,7 +3429,7 @@ sigacts_alloc(void)
|
|||
struct sigacts *ps;
|
||||
|
||||
ps = malloc(sizeof(struct sigacts), M_SUBPROC, M_WAITOK | M_ZERO);
|
||||
ps->ps_refcnt = 1;
|
||||
refcount_init(&ps->ps_refcnt, 1);
|
||||
mtx_init(&ps->ps_mtx, "sigacts", NULL, MTX_DEF);
|
||||
return (ps);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue