svn commit: r226938 - head/sys/contrib/pf/net
Kevin Lo
kevlo at FreeBSD.org
Sun Oct 30 14:55:13 UTC 2011
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) {
More information about the svn-src-head
mailing list