From ce8daaadbda989ff013724caff7bbca3a4cf168f Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Sun, 24 Aug 2014 09:24:37 +0000 Subject: [PATCH] Use refcount_init in sigacts_alloc. This change is a no-op, but fixes up an inconsistency introduced with r268634. MFC after: 3 days --- sys/kern/kern_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 8810bf38a0e5..3e5f1e1342a1 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -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); }