From 49f135add2872486cd2536e6fe7400df7acb8ba5 Mon Sep 17 00:00:00 2001 From: bz Date: Wed, 23 Nov 2011 18:11:10 +0000 Subject: [PATCH] MFC r226938 (by kevlo): Add missing PF_UNLOCK in pf_test Approved by: re (kib) git-svn-id: svn://svn.freebsd.org/base/releng/9.0@227899 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/contrib/pf/net/pf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c index 9b8ed269..f8fc0862 100644 --- a/sys/contrib/pf/net/pf.c +++ b/sys/contrib/pf/net/pf.c @@ -7176,11 +7176,15 @@ pf_test6(int dir, struct ifnet *ifp, struct mbuf **m0, } #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) { -- 2.42.0