The branch stable/14 has been updated by bz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=24d7e316092cba9ea284aad38f45e4bd22a7e2c1

commit 24d7e316092cba9ea284aad38f45e4bd22a7e2c1
Author:     Bjoern A. Zeeb <b...@freebsd.org>
AuthorDate: 2025-04-30 22:06:35 +0000
Commit:     Bjoern A. Zeeb <b...@freebsd.org>
CommitDate: 2025-06-10 23:37:33 +0000

    LinuxKPI: 802.11: switch to m_get3()
    
    Start using m_get3() instead of m_get2() as we may get up to 11K
    frames and m_get2() only gives us up to MJUMPAGESIZE (8K).
    
    Sponsored by:   The FreeBSD Foundation
    Discovered by:  adrian with rtwn(4) [see D50049].
    
    (cherry picked from commit 02382a0ac822b88e17d86643e27964eba18479e0)
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c 
b/sys/compat/linuxkpi/common/src/linux_80211.c
index ca7f80069225..e79ee01a6b32 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -6810,7 +6810,7 @@ linuxkpi_ieee80211_rx(struct ieee80211_hw *hw, struct 
sk_buff *skb,
         * For now do the data copy; we can later improve things. Might even
         * have an mbuf backing the skb data then?
         */
-       m = m_get2(skb->len, M_NOWAIT, MT_DATA, M_PKTHDR);
+       m = m_get3(skb->len, M_NOWAIT, MT_DATA, M_PKTHDR);
        if (m == NULL) {
                counter_u64_add(ic->ic_ierrors, 1);
                goto err;

Reply via email to