Date: Sun, 18 Oct 2009 21:27:59 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 169588 for review Message-ID: <200910182127.n9ILRx9t052586@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=169588 Change 169588 by trasz@trasz_victim on 2009/10/18 21:27:31 Make 'hrl -u' work again. Affected files ... .. //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#71 edit Differences ... ==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_hrl.c#71 (text+ko) ==== @@ -1410,10 +1410,13 @@ if (error) return (error); + sx_slock(&allproc_lock); filter = hrl_rule_from_string(inputstr); free(inputstr, M_HRL); - if (filter == NULL) + if (filter == NULL) { + sx_sunlock(&allproc_lock); return (EINVAL); + } switch (filter->hr_subject_type) { case HRL_SUBJECT_TYPE_PROCESS: @@ -1461,6 +1464,7 @@ } out: hrl_rule_release(filter); + sx_sunlock(&allproc_lock); if (error) return (error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910182127.n9ILRx9t052586>