Date: Tue, 3 Jun 2025 18:37:40 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 02382a0ac822 - main - LinuxKPI: 802.11: switch to m_get3() Message-ID: <202506031837.553IbeDB000445@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=02382a0ac822b88e17d86643e27964eba18479e0 commit 02382a0ac822b88e17d86643e27964eba18479e0 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2025-04-30 22:06:35 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2025-06-03 18:35:09 +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 MFC after: 3 days Discovered by: adrian with rtwn(4) [see D50049]. --- 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 197604e04490..e92656ed41c5 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506031837.553IbeDB000445>