Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2011 14:55:00 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226938 - head/sys/contrib/pf/net
Message-ID:  <201110301455.p9UEt0gA072947@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Sun Oct 30 14:55:00 2011
New Revision: 226938
URL: http://svn.freebsd.org/changeset/base/226938

Log:
  Add missing PF_UNLOCK in pf_test
  
  Reviewed by:	bz

Modified:
  head/sys/contrib/pf/net/pf.c

Modified: head/sys/contrib/pf/net/pf.c
==============================================================================
--- head/sys/contrib/pf/net/pf.c	Sun Oct 30 12:33:19 2011	(r226937)
+++ head/sys/contrib/pf/net/pf.c	Sun Oct 30 14:55:00 2011	(r226938)
@@ -7176,11 +7176,15 @@ pf_test6(int dir, struct ifnet *ifp, str
 	}
 
 #ifdef __FreeBSD__
-	if (pd.pf_mtag->flags & PF_TAG_GENERATED)
+	if (pd.pf_mtag->flags & PF_TAG_GENERATED) {
+		PF_UNLOCK();
 #else
 	if (m->m_pkthdr.pf.flags & PF_TAG_GENERATED)
 #endif
 		return (PF_PASS);
+#ifdef __FreeBSD__
+	}
+#endif
 
 	/* We do IP header normalization and packet reassembly here */
 	if (pf_normalize_ip6(m0, dir, kif, &reason, &pd) != PF_PASS) {



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