git: 04b6d3e0be8c - main - if_pfsync: add missing unlock
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Nov 2026 13:25:06 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=04b6d3e0be8cf1ef6e105c2c33992f891152e95b
commit 04b6d3e0be8cf1ef6e105c2c33992f891152e95b
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-11-02 10:07:56 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-11-02 12:40:01 +0000
if_pfsync: add missing unlock
Fixes: c6a520af95b2 (pfsync: improve handling of large packets, 2026-10-30)
Reported by: markj's Post-Commit LLM Review Service
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/netpfil/pf/if_pfsync.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c
index 0f649ecee8ad..783d1280d5fb 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -1601,6 +1601,7 @@ pfsync_in_bus(struct mbuf *m, int offset, int count, int flags, int action)
}
if (m->m_pkthdr.len < (offset + len)) {
+ PFSYNC_BUNLOCK(sc);
V_pfsyncstats.pfsyncs_badlen++;
return (-1);
}