Date: Sun, 24 Aug 2014 09:24:37 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r270447 - head/sys/kern Message-ID: <201408240924.s7O9ObRu093360@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Sun Aug 24 09:24:37 2014 New Revision: 270447 URL: http://svnweb.freebsd.org/changeset/base/270447 Log: Use refcount_init in sigacts_alloc. This change is a no-op, but fixes up an inconsistency introduced with r268634. MFC after: 3 days Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c ============================================================================== --- head/sys/kern/kern_sig.c Sun Aug 24 09:22:03 2014 (r270446) +++ head/sys/kern/kern_sig.c Sun Aug 24 09:24:37 2014 (r270447) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408240924.s7O9ObRu093360>