Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2015 08:35:54 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287652 - head/sys/contrib/ipfilter/netinet
Message-ID:  <201509110835.t8B8ZsYW017156@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Fri Sep 11 08:35:53 2015
New Revision: 287652
URL: https://svnweb.freebsd.org/changeset/base/287652

Log:
  Fix mutex errors.
  
  Obtained from:	NetBSD r1.4.
  MFC after:	1 week

Modified:
  head/sys/contrib/ipfilter/netinet/ip_state.c

Modified: head/sys/contrib/ipfilter/netinet/ip_state.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_state.c	Fri Sep 11 08:27:32 2015	(r287651)
+++ head/sys/contrib/ipfilter/netinet/ip_state.c	Fri Sep 11 08:35:53 2015	(r287652)
@@ -3656,7 +3656,6 @@ ipf_state_del(softc, is, why)
 			softs->ipf_state_stats.iss_orphan++;
 		return refs;
 	}
-	MUTEX_EXIT(&is->is_lock);
 
 	fr = is->is_rule;
 	is->is_rule = NULL;
@@ -3668,6 +3667,7 @@ ipf_state_del(softc, is, why)
 	}
 
 	is->is_ref = 0;
+	MUTEX_EXIT(&is->is_lock);
 
 	if (is->is_tqehead[0] != NULL) {
 		if (ipf_deletetimeoutqueue(is->is_tqehead[0]) == 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509110835.t8B8ZsYW017156>